benibraz commited on
Commit
bc0163b
1 Parent(s): 714b7fb

Refactor app.py to launch iface.queue within a main guard for better script execution

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -587,4 +587,5 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
587
  concurrency_limit=1,
588
  )
589
 
590
- iface.queue(max_size=64).launch(share=True)
 
 
587
  concurrency_limit=1,
588
  )
589
 
590
+ if __name__ == "__main__":
591
+ iface.queue(max_size=64, default_concurrency_limit=1).launch(share=True)