Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download resources/app/python/pyinstaller_imports.py from Pendrokar/xVASynth-TTS: direct link, hf CLI and curl.
- Browser
- Download file 932 Bytes
-
https://huggingface.co/spaces/Pendrokar/xVASynth-TTS/resolve/main/resources/app/python/pyinstaller_imports.py
- Command line
-
hf download hf://spaces/Pendrokar/xVASynth-TTS/resources/app/python/pyinstaller_imports.py
-
curl -L -o pyinstaller_imports.py https://huggingface.co/spaces/Pendrokar/xVASynth-TTS/resolve/main/resources/app/python/pyinstaller_imports.py
932 Bytes
| # This is a junk file which imports a bunch of packages, to make it much more easy to deal with pyinstaller | |
| # to package up all the correct dependencies. There are more proper ways to do this, but this is the easiest | |
| import numpy | |
| import traceback | |
| import numpy.core.multiarray | |
| import numpy.core | |
| import numpy.core.overrides | |
| try: | |
| import scipy | |
| import scipy.linalg | |
| import scipy.linalg.blas | |
| import scipy.special | |
| import scipy.optimize | |
| # import scipy.optimize.line_search | |
| import sklearn | |
| import sklearn.utils._cython_blas | |
| import sklearn.neighbors.typedefs | |
| import sklearn.neighbors.quad_tree | |
| import sklearn.tree | |
| import sklearn.tree._utils | |
| except: | |
| print("==== scipy") | |
| print(traceback.format_exc()) | |
| from PyInstaller.utils.hooks import collect_data_files | |
| datas = collect_data_files('sklearn') | |
| try: | |
| import librosa | |
| except: | |
| print("==== librosa") | |
| print(traceback.format_exc()) | |