R1ckShi commited on
Commit
d4d1fbd
·
verified ·
1 Parent(s): c9dee22

update launch func

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -210,7 +210,8 @@ def main():
210
  mode_checkbox_group.change(fn=change_instruction, inputs=[mode_checkbox_group], outputs=[instruction_text])
211
  prompt_wav_upload.change(fn=prompt_wav_recognition, inputs=[prompt_wav_upload], outputs=[prompt_text])
212
  prompt_wav_record.change(fn=prompt_wav_recognition, inputs=[prompt_wav_record], outputs=[prompt_text])
213
- demo.queue(max_size=4, default_concurrency_limit=2).launch(server_port=50000)
 
214
 
215
 
216
  if __name__ == '__main__':
 
210
  mode_checkbox_group.change(fn=change_instruction, inputs=[mode_checkbox_group], outputs=[instruction_text])
211
  prompt_wav_upload.change(fn=prompt_wav_recognition, inputs=[prompt_wav_upload], outputs=[prompt_text])
212
  prompt_wav_record.change(fn=prompt_wav_recognition, inputs=[prompt_wav_record], outputs=[prompt_text])
213
+
214
+ demo.launch(max_threads=4)
215
 
216
 
217
  if __name__ == '__main__':