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