haoheliu hysts HF staff commited on
Commit
77c9d7f
1 Parent(s): 2a75fd6

Not process in parallel and limit queue length (#227)

Browse files

- Stop processing in parallel and limit the queue length (37adae931bf4d8090cc7214b9d8561ccea5a4708)


Co-authored-by: hysts <hysts@users.noreply.huggingface.co>

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)