Neil-YL commited on
Commit
2416d76
·
verified ·
1 Parent(s): d30478a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -407,7 +407,7 @@ with gr.Blocks(title="OT-2 Liquid Color Matching Experiment Queue") as demo:
407
  inputs=[student_id_input, r_slider, y_slider, b_slider],
408
  outputs=result_output,
409
  api_name="submit",
410
- concurrency_limit=3
411
  ).then(
412
  update_queue_display,
413
  None,
@@ -426,8 +426,8 @@ with gr.Blocks(title="OT-2 Liquid Color Matching Experiment Queue") as demo:
426
  queue_status
427
  )
428
 
429
- # NOTE: Left as-is, you have not used demo.queue(...) except for concurrency_limit on the .click
430
- demo.queue # No changes here
431
 
432
  if __name__ == "__main__":
433
  demo.launch()
 
407
  inputs=[student_id_input, r_slider, y_slider, b_slider],
408
  outputs=result_output,
409
  api_name="submit",
410
+ concurrency_limit=5
411
  ).then(
412
  update_queue_display,
413
  None,
 
426
  queue_status
427
  )
428
 
429
+
430
+ demo.queue
431
 
432
  if __name__ == "__main__":
433
  demo.launch()