Spaces:
Running
on
L4
Running
on
L4
change unzip to tar
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ sys.path.append('{}/third_party/Matcha-TTS'.format(ROOT_DIR))
|
|
53 |
from modelscope import snapshot_download
|
54 |
snapshot_download('iic/CosyVoice2-0.5B', local_dir='pretrained_models/CosyVoice2-0.5B')
|
55 |
snapshot_download('iic/CosyVoice-ttsfrd', local_dir='pretrained_models/CosyVoice-ttsfrd')
|
56 |
-
os.system('cd pretrained_models/CosyVoice-ttsfrd/ && pip install ttsfrd_dependency-0.1-py3-none-any.whl && pip install ttsfrd-0.4.2-cp310-cp310-linux_x86_64.whl &&
|
57 |
|
58 |
from cosyvoice.cli.cosyvoice import CosyVoice2
|
59 |
from cosyvoice.utils.file_utils import load_wav, logging
|
|
|
53 |
from modelscope import snapshot_download
|
54 |
snapshot_download('iic/CosyVoice2-0.5B', local_dir='pretrained_models/CosyVoice2-0.5B')
|
55 |
snapshot_download('iic/CosyVoice-ttsfrd', local_dir='pretrained_models/CosyVoice-ttsfrd')
|
56 |
+
os.system('cd pretrained_models/CosyVoice-ttsfrd/ && pip install ttsfrd_dependency-0.1-py3-none-any.whl && pip install ttsfrd-0.4.2-cp310-cp310-linux_x86_64.whl && tar -xvf resource.tar')
|
57 |
|
58 |
from cosyvoice.cli.cosyvoice import CosyVoice2
|
59 |
from cosyvoice.utils.file_utils import load_wav, logging
|