tomas-gajarsky commited on
Commit
b0d857a
·
1 Parent(s): 65a4898

Move concurrency_limit setting from queue to Interface

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -79,6 +79,7 @@ demo=gr.Interface(
79
  description=description,
80
  article=article,
81
  examples=[["./test5.jpg"], ["./test.jpg"], ["./test4.jpg"], ["./test8.jpg"], ["./test6.jpg"], ["./test3.jpg"], ["./test10.jpg"]],
 
82
  )
83
- demo.queue(concurrency_count=1, api_open=False)
84
  demo.launch(server_name="0.0.0.0", server_port=7860, debug=True)
 
79
  description=description,
80
  article=article,
81
  examples=[["./test5.jpg"], ["./test.jpg"], ["./test4.jpg"], ["./test8.jpg"], ["./test6.jpg"], ["./test3.jpg"], ["./test10.jpg"]],
82
+ concurrency_limit=10,
83
  )
84
+ demo.queue(api_open=True)
85
  demo.launch(server_name="0.0.0.0", server_port=7860, debug=True)