Spaces:
Running
Running
Download modules/utils/constants.py from ProbablyBlue/ChatTTS-Forge: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/utils/constants.py
- Command line
-
hf download hf://spaces/ProbablyBlue/ChatTTS-Forge/modules/utils/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/utils/constants.py
311 Bytes
| import os | |
| cwd = os.getcwd() | |
| utils_path = os.path.dirname(os.path.realpath(__file__)) | |
| modules_path = os.path.dirname(utils_path) | |
| ROOT_DIR = os.path.dirname(modules_path) | |
| DATA_DIR = os.path.join(ROOT_DIR, "data") | |
| MODELS_DIR = os.path.join(ROOT_DIR, "models") | |
| SPEAKERS_DIR = os.path.join(DATA_DIR, "speakers") | |