Alexandr "MrSteyk" German commited on
Commit
2959d62
1 Parent(s): fb9114d

test the concurrency count

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,5 +100,5 @@ with gr.Blocks() as app:
100
  c = complete.click(generator_wrap(2, complete_fn), [inpt, max_tokens, min_tokens, alpha_f, alpha_p], [out, error_box] + G)
101
  c_stop.click(lambda: (complete.update(visible=True), c_stop.update(visible=False)), inputs=None, outputs=[complete, c_stop], cancels=[c], queue=False)
102
 
103
- app.queue()
104
  app.launch()
 
100
  c = complete.click(generator_wrap(2, complete_fn), [inpt, max_tokens, min_tokens, alpha_f, alpha_p], [out, error_box] + G)
101
  c_stop.click(lambda: (complete.update(visible=True), c_stop.update(visible=False)), inputs=None, outputs=[complete, c_stop], cancels=[c], queue=False)
102
 
103
+ app.queue(concurrency_count=2)
104
  app.launch()