Update app.py
#7
by kthchow - opened
app.py
CHANGED
|
@@ -511,8 +511,8 @@ with gr.Blocks(title="OT-2 Liquid Color Matching Experiment Queue") as demo:
|
|
| 511 |
# NOTE: concurrency_limit=3 is preserved; no changes here
|
| 512 |
submit_btn.click(
|
| 513 |
add_to_queue,
|
| 514 |
-
inputs=[student_id_input, r_slider, y_slider, b_slider,
|
| 515 |
-
outputs=
|
| 516 |
api_name="submit",
|
| 517 |
concurrency_limit=8
|
| 518 |
).then(
|
|
@@ -543,7 +543,7 @@ with gr.Blocks(title="OT-2 Liquid Color Matching Experiment Queue") as demo:
|
|
| 543 |
)
|
| 544 |
|
| 545 |
|
| 546 |
-
demo.queue
|
| 547 |
|
| 548 |
if __name__ == "__main__":
|
| 549 |
demo.launch()
|
|
|
|
| 511 |
# NOTE: concurrency_limit=3 is preserved; no changes here
|
| 512 |
submit_btn.click(
|
| 513 |
add_to_queue,
|
| 514 |
+
inputs=[student_id_input, r_slider, y_slider, b_slider, experiment_state],
|
| 515 |
+
outputs=[result_output, experiment_state],
|
| 516 |
api_name="submit",
|
| 517 |
concurrency_limit=8
|
| 518 |
).then(
|
|
|
|
| 543 |
)
|
| 544 |
|
| 545 |
|
| 546 |
+
demo.queue()
|
| 547 |
|
| 548 |
if __name__ == "__main__":
|
| 549 |
demo.launch()
|