Spaces:
Running on Zero
Running on Zero
Download Preprocessing/Codec/env.py from ollui/MassivelyMultilingualTTS: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/ollui/MassivelyMultilingualTTS/resolve/main/Preprocessing/Codec/env.py
- Command line
-
hf download hf://spaces/ollui/MassivelyMultilingualTTS/Preprocessing/Codec/env.py
-
curl -L -o env.py https://huggingface.co/spaces/ollui/MassivelyMultilingualTTS/resolve/main/Preprocessing/Codec/env.py
394 Bytes
| import os | |
| import shutil | |
| class AttrDict(dict): | |
| def __init__(self, *args, **kwargs): | |
| super(AttrDict, self).__init__(*args, **kwargs) | |
| self.__dict__ = self | |
| def build_env(config, config_name, path): | |
| t_path = os.path.join(path, config_name) | |
| if config != t_path: | |
| os.makedirs(path, exist_ok=True) | |
| shutil.copyfile(config, os.path.join(path, config_name)) | |