barreloflube
commited on
Commit
•
b586918
1
Parent(s):
ee941bf
Refactor config.py to update PYTHONPATH for CosyVoice TTS imports
Browse files
config.py
CHANGED
@@ -7,8 +7,12 @@ import torch
|
|
7 |
# Setup Repo
|
8 |
|
9 |
# Audios
|
10 |
-
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
|
11 |
-
os.environ['PYTHONPATH'] = f'{os.path.dirname(__file__)}/modules/CosyVoice:{os.environ.get("PYTHONPATH", "")}' # add tabs/audios/modules/CosyVoice to PYTHONPATH
|
|
|
|
|
|
|
|
|
12 |
|
13 |
css = """
|
14 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
|
|
|
7 |
# Setup Repo
|
8 |
|
9 |
# Audios
|
10 |
+
# 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
|
11 |
+
# os.environ['PYTHONPATH'] = f'{os.path.dirname(__file__)}/modules/CosyVoice:{os.environ.get("PYTHONPATH", "")}' # add tabs/audios/modules/CosyVoice to PYTHONPATH
|
12 |
+
matcha_tts_path = f'{os.path.dirname(__file__)}/modules/CosyVoice/third_party/Matcha-TTS'
|
13 |
+
cosyvoice_path = f'{os.path.dirname(__file__)}/modules/CosyVoice'
|
14 |
+
os.environ['PYTHONPATH'] = f'{matcha_tts_path}:{cosyvoice_path}:{os.environ.get("PYTHONPATH", "")}'
|
15 |
+
|
16 |
|
17 |
css = """
|
18 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
|