linx5o commited on
Commit
a55970d
1 Parent(s): 4f35d1d
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -843,30 +843,30 @@ with gr.Blocks() as demo:
843
  gr.Markdown("# Experiments")
844
 
845
  with gr.Row():
846
- new_experiment = gr.Textbox(label="New Experiment")
847
- new_experiment_button = gr.Button("Add Experiment")
848
 
849
  with gr.Row():
850
- remove_experiment = gr.Textbox(label="Remove Experiment")
851
- remove_experiment_button = gr.Button("Remove Experiment")
852
 
853
  with gr.Row():
854
- change_experiment = gr.Textbox(label="Change Experiment")
855
- change_experiment_button = gr.Button("Change Experiment")
856
 
857
- new_experiment_button.click(
858
  fn=new_experiment,
859
- inputs=[new_experiment, host_input, port_input, username_input, password_input, pioreactor_input, experiment_input]
860
  )
861
 
862
- remove_experiment_button.click(
863
  fn=remove_experiment,
864
- inputs=[remove_experiment, host_input, port_input, username_input, password_input, pioreactor_input, experiment_input]
865
  )
866
 
867
- change_experiment_button.click(
868
  fn=change_experiment,
869
- inputs=[change_experiment, host_input, port_input, username_input, password_input, pioreactor_input, experiment_input]
870
  )
871
 
872
  with gr.Blocks():
 
843
  gr.Markdown("# Experiments")
844
 
845
  with gr.Row():
846
+ new_experiment_b = gr.Textbox(label="New Experiment")
847
+ new_experiment_button_b = gr.Button("Add Experiment")
848
 
849
  with gr.Row():
850
+ remove_experiment_b = gr.Textbox(label="Remove Experiment")
851
+ remove_experiment_button_b = gr.Button("Remove Experiment")
852
 
853
  with gr.Row():
854
+ change_experiment_b = gr.Textbox(label="Change Experiment")
855
+ change_experiment_button_b = gr.Button("Change Experiment")
856
 
857
+ new_experiment_button_b.click(
858
  fn=new_experiment,
859
+ inputs=[new_experiment_b, host_input, port_input, username_input, password_input, pioreactor_input, experiment_input]
860
  )
861
 
862
+ remove_experiment_button_b.click(
863
  fn=remove_experiment,
864
+ inputs=[remove_experiment_b, host_input, port_input, username_input, password_input, pioreactor_input, experiment_input]
865
  )
866
 
867
+ change_experiment_button_b.click(
868
  fn=change_experiment,
869
+ inputs=[change_experiment_b, host_input, port_input, username_input, password_input, pioreactor_input, experiment_input]
870
  )
871
 
872
  with gr.Blocks():