Spaces:
Running
on
Zero
Running
on
Zero
chong.zhang
commited on
Commit
·
a923215
1
Parent(s):
7ceb864
update
Browse files
inspiremusic/cli/inference.py
CHANGED
@@ -27,7 +27,7 @@ def set_env_variables():
|
|
27 |
os.environ['PYTHONIOENCODING'] = 'UTF-8'
|
28 |
os.environ['TOKENIZERS_PARALLELISM'] = 'False'
|
29 |
current_working_dir = os.getcwd()
|
30 |
-
main_root = os.path.realpath(os.path.join(current_working_dir, '
|
31 |
bin_dir = os.path.join(main_root, 'inspiremusic')
|
32 |
third_party_matcha_tts_path = os.path.join(main_root, 'third_party', 'Matcha-TTS')
|
33 |
python_path = f"{main_root}:{bin_dir}:{third_party_matcha_tts_path}:{os.environ.get('PYTHONPATH', '')}"
|
|
|
27 |
os.environ['PYTHONIOENCODING'] = 'UTF-8'
|
28 |
os.environ['TOKENIZERS_PARALLELISM'] = 'False'
|
29 |
current_working_dir = os.getcwd()
|
30 |
+
main_root = os.path.realpath(os.path.join(current_working_dir, './'))
|
31 |
bin_dir = os.path.join(main_root, 'inspiremusic')
|
32 |
third_party_matcha_tts_path = os.path.join(main_root, 'third_party', 'Matcha-TTS')
|
33 |
python_path = f"{main_root}:{bin_dir}:{third_party_matcha_tts_path}:{os.environ.get('PYTHONPATH', '')}"
|