Spaces:
Running
Running
Download modules/hf.py from ProbablyBlue/ChatTTS-Forge: direct link, hf CLI and curl.
- Browser
- Download file 218 Bytes
-
https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/hf.py
- Command line
-
hf download hf://spaces/ProbablyBlue/ChatTTS-Forge/modules/hf.py
-
curl -L -o hf.py https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/hf.py
218 Bytes
| # 给huggingface space写的兼容代码 | |
| try: | |
| import spaces | |
| except: | |
| class NoneSpaces: | |
| def __init__(self): | |
| pass | |
| def GPU(self, fn): | |
| return fn | |
| spaces = NoneSpaces() | |