yuntian-deng commited on
Commit
fcba90f
1 Parent(s): dc63b07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,5 +109,5 @@ with gr.Blocks() as demo:
109
  # yield i, q, submit_btn.update(visible=True)
110
  except Exception as e:
111
  yield 1000, 255*np.ones((64, 320, 3)), submit_btn.update(visible=True)
112
- submit_btn.click(fn=infer, inputs=inputs, outputs=outputs)
113
- demo.queue(concurrency_count=1, max_size=20).launch(enable_queue=True)
 
109
  # yield i, q, submit_btn.update(visible=True)
110
  except Exception as e:
111
  yield 1000, 255*np.ones((64, 320, 3)), submit_btn.update(visible=True)
112
+ submit_btn.click(fn=infer, inputs=inputs, outputs=outputs, concurrency_limit=1)
113
+ demo.queue(max_size=20).launch(enable_queue=True)