tanbw commited on
Commit
2749090
1 Parent(s): 5b76a16

no message

Browse files
Files changed (1) hide show
  1. webui.py +4 -1
webui.py CHANGED
@@ -133,6 +133,9 @@ def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, pro
133
  yield (target_sr, i['tts_speech'].numpy().flatten())
134
 
135
  # SDK模型下载
 
 
 
136
  from modelscope import snapshot_download
137
  snapshot_download('iic/CosyVoice-300M', local_dir='pretrained_models/CosyVoice-300M')
138
 
@@ -187,7 +190,7 @@ with gr.Blocks() as demo:
187
  outputs=[audio_output])
188
  mode_checkbox_group.change(fn=change_instruction, inputs=[mode_checkbox_group], outputs=[instruction_text])
189
  demo.queue(max_size=4, default_concurrency_limit=2)
190
- demo.launch(server_name='0.0.0.0', server_port=args.port)
191
 
192
 
193
 
 
133
  yield (target_sr, i['tts_speech'].numpy().flatten())
134
 
135
  # SDK模型下载
136
+ import platform
137
+ python_version = platform.python_version()
138
+ print("Python version:", python_version)
139
  from modelscope import snapshot_download
140
  snapshot_download('iic/CosyVoice-300M', local_dir='pretrained_models/CosyVoice-300M')
141
 
 
190
  outputs=[audio_output])
191
  mode_checkbox_group.change(fn=change_instruction, inputs=[mode_checkbox_group], outputs=[instruction_text])
192
  demo.queue(max_size=4, default_concurrency_limit=2)
193
+ demo.launch()
194
 
195
 
196