R1ckShi commited on
Commit
d36e350
1 Parent(s): db8989f

change unzip to tar

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 && apt install -y unzip && unzip resource.zip -d .')
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