hysts HF staff commited on
Commit
37adae9
1 Parent(s): 2a75fd6

Stop processing in parallel and limit the queue length

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -305,6 +305,5 @@ with iface:
305
  )
306
  # <p>This demo is strictly for research demo purpose only. For commercial use please <a href="haoheliu@gmail.com">contact us</a>.</p>
307
 
308
- iface.queue(concurrency_count=2)
309
- iface.launch(debug=True)
310
  # iface.launch(debug=True, share=True)
305
  )
306
  # <p>This demo is strictly for research demo purpose only. For commercial use please <a href="haoheliu@gmail.com">contact us</a>.</p>
307
 
308
+ iface.queue(max_size=10).launch(debug=True)
 
309
  # iface.launch(debug=True, share=True)