Added queue and share=True to enhance compatibility with Google Colab

This commit is contained in:
Xavi Vinaixa
2023-06-05 07:30:48 +02:00
parent 1269df361d
commit d1a7c327f7

2
app.py
View File

@@ -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)
demo.queue().launch(show_error=True,debug=True,share=True)