From 0a65a4032a06c9f65e838c56ac15306a2e4c92d8 Mon Sep 17 00:00:00 2001 From: Xavi Vinaixa Date: Mon, 5 Jun 2023 09:42:20 +0200 Subject: [PATCH] Added queue for managing long-running processes --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 26e25f7..845558a 100644 --- a/app.py +++ b/app.py @@ -48,4 +48,4 @@ with gr.Blocks() as demo: button.click(fn=run,inputs=[video]+origin+destination+thresholds,outputs=[video2]) #demo.launch(share=True,server_name="0.0.0.0", show_error=True) -demo.launch(show_error=True,share=True) \ No newline at end of file +demo.queue().launch(show_error=True,share=True) \ No newline at end of file