Spaces:
Runtime error
Runtime error
fixed conflict
Browse files
app.py
CHANGED
|
@@ -822,7 +822,7 @@ with gr.Blocks() as demo:
|
|
| 822 |
|
| 823 |
with gr.Blocks():
|
| 824 |
gr.Markdown("# Status")
|
| 825 |
-
|
| 826 |
|
| 827 |
with gr.Row():
|
| 828 |
experiment_output = gr.Textbox(label="Experiment", interactive=False)
|
|
@@ -833,7 +833,7 @@ with gr.Blocks() as demo:
|
|
| 833 |
led_output = gr.Textbox(label="LEDs", interactive=False)
|
| 834 |
experiments_output = gr.Textbox(label="Experiments", interactive=False)
|
| 835 |
|
| 836 |
-
|
| 837 |
fn=get_status,
|
| 838 |
inputs=[host_input, port_input, username_input, password_input, pioreactor_input, experiment_input],
|
| 839 |
outputs=[experiment_output, running_output, temp_output, rpm_output, led_output, experiments_output]
|
|
|
|
| 822 |
|
| 823 |
with gr.Blocks():
|
| 824 |
gr.Markdown("# Status")
|
| 825 |
+
get_status_b = gr.Button("Get Status")
|
| 826 |
|
| 827 |
with gr.Row():
|
| 828 |
experiment_output = gr.Textbox(label="Experiment", interactive=False)
|
|
|
|
| 833 |
led_output = gr.Textbox(label="LEDs", interactive=False)
|
| 834 |
experiments_output = gr.Textbox(label="Experiments", interactive=False)
|
| 835 |
|
| 836 |
+
get_status_b.click(
|
| 837 |
fn=get_status,
|
| 838 |
inputs=[host_input, port_input, username_input, password_input, pioreactor_input, experiment_input],
|
| 839 |
outputs=[experiment_output, running_output, temp_output, rpm_output, led_output, experiments_output]
|