ercaronte commited on
Commit
c440523
1 Parent(s): bd9c34f

Update app.py

Browse files

Adding gradio queueing to help long inference times.

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -104,4 +104,5 @@ file_translate = gr.Interface(
104
  with demo:
105
  gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
106
 
107
- demo.launch()
 
 
104
  with demo:
105
  gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
106
 
107
+ demo.queue()
108
+ demo.launch(share=True)