Spaces:
Build error
Build error
Download text_to_speech/utils/commons/single_thread_env.py from Datasculptor/AudioGPT: direct link, hf CLI and curl.
- Browser
- Download file 133 Bytes
-
https://huggingface.co/spaces/Datasculptor/AudioGPT/resolve/main/text_to_speech/utils/commons/single_thread_env.py
- Command line
-
hf download hf://spaces/Datasculptor/AudioGPT/text_to_speech/utils/commons/single_thread_env.py
-
curl -L -o single_thread_env.py https://huggingface.co/spaces/Datasculptor/AudioGPT/resolve/main/text_to_speech/utils/commons/single_thread_env.py
133 Bytes
| import os | |
| os.environ["OMP_NUM_THREADS"] = "1" | |
| os.environ['TF_NUM_INTEROP_THREADS'] = '1' | |
| os.environ['TF_NUM_INTRAOP_THREADS'] = '1' | |