Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -190,11 +190,12 @@ def create_interface():
|
|
190 |
generate_btn.click(
|
191 |
fn=on_generate,
|
192 |
inputs=[voice_dropdown, video_url_input, text_input],
|
193 |
-
outputs=[video_output, status_output]
|
|
|
194 |
)
|
195 |
|
196 |
return app
|
197 |
|
198 |
if __name__ == "__main__":
|
199 |
app = create_interface()
|
200 |
-
app.launch()
|
|
|
190 |
generate_btn.click(
|
191 |
fn=on_generate,
|
192 |
inputs=[voice_dropdown, video_url_input, text_input],
|
193 |
+
outputs=[video_output, status_output],
|
194 |
+
concurrency_limit=None # Allow unlimited concurrent runs
|
195 |
)
|
196 |
|
197 |
return app
|
198 |
|
199 |
if __name__ == "__main__":
|
200 |
app = create_interface()
|
201 |
+
app.launch(concurrent_tasks=10) # Allow up to 5 concurrent tasks
|