Refactor app.py to launch iface.queue within a main guard for better script execution
Browse files
app.py
CHANGED
@@ -587,4 +587,5 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
587 |
concurrency_limit=1,
|
588 |
)
|
589 |
|
590 |
-
|
|
|
|
587 |
concurrency_limit=1,
|
588 |
)
|
589 |
|
590 |
+
if __name__ == "__main__":
|
591 |
+
iface.queue(max_size=64, default_concurrency_limit=1).launch(share=True)
|