alexnasa commited on
Commit
680b212
·
verified ·
1 Parent(s): e297a71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -306,4 +306,9 @@ with gr.Blocks(css=css) as demo:
306
  # START THE GRADIO SERVER
307
  # ------------------------------------------------------------------
308
 
 
 
 
 
 
309
  demo.launch(share=True)
 
306
  # START THE GRADIO SERVER
307
  # ------------------------------------------------------------------
308
 
309
+ # 🔧 1) turn the global queue ON and set its default_concurrency_limit to 1
310
+ demo.queue(default_concurrency_limit=1, # ≤ 1 worker per event
311
+ max_size=20) # optional: allow 20 waiting jobs
312
+
313
+ # 🔧 2) launch as usual
314
  demo.launch(share=True)