Spaces:
Runtime error
Runtime error
strring in default
Browse files
app.py
CHANGED
|
@@ -666,6 +666,20 @@ with gr.Blocks() as demo:
|
|
| 666 |
fn=change_experiment_default,
|
| 667 |
inputs=[change_experiment_a, experiment_input]
|
| 668 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 669 |
|
| 670 |
with gr.Blocks():
|
| 671 |
gr.Markdown("# Temperature Automation")
|
|
|
|
| 666 |
fn=change_experiment_default,
|
| 667 |
inputs=[change_experiment_a, experiment_input]
|
| 668 |
)
|
| 669 |
+
|
| 670 |
+
with gr.Blocks():
|
| 671 |
+
gr.Markdown("# Stirring")
|
| 672 |
+
rpm_input = gr.Slider(minimum=0, maximum=2000, step=50, label="RPM")
|
| 673 |
+
|
| 674 |
+
with gr.Row():
|
| 675 |
+
stir_state = gr.Radio(choices=["start", "stop", "update"], label="State")
|
| 676 |
+
|
| 677 |
+
st = gr.Button("Send Command")
|
| 678 |
+
|
| 679 |
+
st.click(
|
| 680 |
+
fn=stirring_default,
|
| 681 |
+
inputs=[rpm_input, experiment_input, stir_state]
|
| 682 |
+
)
|
| 683 |
|
| 684 |
with gr.Blocks():
|
| 685 |
gr.Markdown("# Temperature Automation")
|