barreloflube
commited on
Commit
·
ce81b3b
1
Parent(s):
3f59a3a
Refactor config.py to update PYTHONPATH for CosyVoice TTS imports
Browse files
config.py
CHANGED
@@ -10,8 +10,8 @@ import torch
|
|
10 |
# Audios
|
11 |
# os.environ['PYTHONPATH'] = f'{os.path.dirname(__file__)}/modules/CosyVoice/third_party/Matcha-TTS:{os.environ.get("PYTHONPATH", "")}' # add tabs/audios/modules/CosyVoice/third_party/Matcha-TTS to PYTHONPATH
|
12 |
# os.environ['PYTHONPATH'] = f'{os.path.dirname(__file__)}/modules/CosyVoice:{os.environ.get("PYTHONPATH", "")}' # add tabs/audios/modules/CosyVoice to PYTHONPATH
|
13 |
-
matcha_tts_path =
|
14 |
-
cosyvoice_path =
|
15 |
sys.path.append(matcha_tts_path)
|
16 |
sys.path.append(cosyvoice_path)
|
17 |
|
|
|
10 |
# Audios
|
11 |
# os.environ['PYTHONPATH'] = f'{os.path.dirname(__file__)}/modules/CosyVoice/third_party/Matcha-TTS:{os.environ.get("PYTHONPATH", "")}' # add tabs/audios/modules/CosyVoice/third_party/Matcha-TTS to PYTHONPATH
|
12 |
# os.environ['PYTHONPATH'] = f'{os.path.dirname(__file__)}/modules/CosyVoice:{os.environ.get("PYTHONPATH", "")}' # add tabs/audios/modules/CosyVoice to PYTHONPATH
|
13 |
+
matcha_tts_path = os.path.join(os.getcwd(), 'tabs', 'audios', 'modules', 'CosyVoice', 'third_party', 'Matcha-TTS')
|
14 |
+
cosyvoice_path = os.path.join(os.getcwd(), 'tabs', 'audios', 'modules', 'CosyVoice')
|
15 |
sys.path.append(matcha_tts_path)
|
16 |
sys.path.append(cosyvoice_path)
|
17 |
|