littlebird13 commited on
Commit
8a00872
1 Parent(s): 1786359

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ sys.path.append('{}/third_party/AcademiCodec'.format(ROOT_DIR))
5
  sys.path.append('{}/third_party/Matcha-TTS'.format(ROOT_DIR))
6
 
7
  from modelscope import snapshot_download
8
- snapshot_download('speech_tts/speech_kantts_ttsfrd', allow_file_pattern='ttsfrd-0.3.9-cp310-cp310-linux_x86_64.whl', local_dir='pretrained_models/speech_kantts_ttsfrd')
9
  os.system('cd pretrained_models/speech_kantts_ttsfrd/ && ttsfrd-0.3.9-cp310-cp310-linux_x86_64.whl')
10
  os.system('sed -i [email protected]@typing_extensions@g /opt/conda/lib/python3.8/site-packages/inflect/__init__.py')
11
 
 
5
  sys.path.append('{}/third_party/Matcha-TTS'.format(ROOT_DIR))
6
 
7
  from modelscope import snapshot_download
8
+ snapshot_download('speech_tts/speech_kantts_ttsfrd',revision="master", allow_file_pattern='ttsfrd-0.3.9-cp310-cp310-linux_x86_64.whl', local_dir='pretrained_models/speech_kantts_ttsfrd')
9
  os.system('cd pretrained_models/speech_kantts_ttsfrd/ && ttsfrd-0.3.9-cp310-cp310-linux_x86_64.whl')
10
  os.system('sed -i [email protected]@typing_extensions@g /opt/conda/lib/python3.8/site-packages/inflect/__init__.py')
11