Spaces:
Runtime error
Runtime error
remove rename experiment step
Browse files
app.py
CHANGED
|
@@ -870,7 +870,8 @@ def get_data_default(time_scale, exp):
|
|
| 870 |
# Return both plots
|
| 871 |
return plot1, plot2, plot3, plot4
|
| 872 |
|
| 873 |
-
|
|
|
|
| 874 |
|
| 875 |
# Define the interface components
|
| 876 |
with gr.Blocks() as demo:
|
|
@@ -892,7 +893,7 @@ with gr.Blocks() as demo:
|
|
| 892 |
|
| 893 |
|
| 894 |
gr.Markdown("The experiment name is required for all commands. You can get the experiment name from the status tab. When changing experiments, remember to update the experiment name.")
|
| 895 |
-
experiment_input = gr.Textbox(label="Experiment", placeholder="Get Experiment Name
|
| 896 |
experiment_input.input(fn=void_client)
|
| 897 |
|
| 898 |
client = create_client(HOST, PORT, USERNAME, PASSWORD)
|
|
@@ -915,6 +916,8 @@ with gr.Blocks() as demo:
|
|
| 915 |
inputs=[experiment_input],
|
| 916 |
outputs=[experiment_output, running_output, temp_output, rpm_output, led_output, experiments_output]
|
| 917 |
)
|
|
|
|
|
|
|
| 918 |
|
| 919 |
with gr.Blocks():
|
| 920 |
gr.Markdown("# Experiments")
|
|
|
|
| 870 |
# Return both plots
|
| 871 |
return plot1, plot2, plot3, plot4
|
| 872 |
|
| 873 |
+
def update_text(input_text):
|
| 874 |
+
return input_text
|
| 875 |
|
| 876 |
# Define the interface components
|
| 877 |
with gr.Blocks() as demo:
|
|
|
|
| 893 |
|
| 894 |
|
| 895 |
gr.Markdown("The experiment name is required for all commands. You can get the experiment name from the status tab. When changing experiments, remember to update the experiment name.")
|
| 896 |
+
experiment_input = gr.Textbox(label="Experiment", placeholder="Get Experiment Name By Clicking Get Status", interactive=False)
|
| 897 |
experiment_input.input(fn=void_client)
|
| 898 |
|
| 899 |
client = create_client(HOST, PORT, USERNAME, PASSWORD)
|
|
|
|
| 916 |
inputs=[experiment_input],
|
| 917 |
outputs=[experiment_output, running_output, temp_output, rpm_output, led_output, experiments_output]
|
| 918 |
)
|
| 919 |
+
|
| 920 |
+
experiment_output.change(fn=update_text, inputs=experiment_input)
|
| 921 |
|
| 922 |
with gr.Blocks():
|
| 923 |
gr.Markdown("# Experiments")
|