app.py
CHANGED
@@ -641,30 +641,30 @@ with gr.Blocks() as demo:
|
|
641 |
gr.Markdown("# Experiments")
|
642 |
|
643 |
with gr.Row():
|
644 |
-
|
645 |
new_experiment_button = gr.Button("Add Experiment")
|
646 |
|
647 |
with gr.Row():
|
648 |
-
|
649 |
remove_experiment_button = gr.Button("Remove Experiment")
|
650 |
|
651 |
with gr.Row():
|
652 |
-
|
653 |
change_experiment_button = gr.Button("Change Experiment")
|
654 |
|
655 |
new_experiment_button.click(
|
656 |
fn=new_experiment_default,
|
657 |
-
inputs=[
|
658 |
)
|
659 |
|
660 |
remove_experiment_button.click(
|
661 |
fn=remove_experiment_default,
|
662 |
-
inputs=[
|
663 |
)
|
664 |
|
665 |
change_experiment_button.click(
|
666 |
fn=change_experiment_default,
|
667 |
-
inputs=[
|
668 |
)
|
669 |
|
670 |
with gr.Blocks():
|
|
|
641 |
gr.Markdown("# Experiments")
|
642 |
|
643 |
with gr.Row():
|
644 |
+
new_experiment_a = gr.Textbox(label="New Experiment")
|
645 |
new_experiment_button = gr.Button("Add Experiment")
|
646 |
|
647 |
with gr.Row():
|
648 |
+
remove_experiment_a = gr.Textbox(label="Remove Experiment")
|
649 |
remove_experiment_button = gr.Button("Remove Experiment")
|
650 |
|
651 |
with gr.Row():
|
652 |
+
change_experiment_a = gr.Textbox(label="Change Experiment")
|
653 |
change_experiment_button = gr.Button("Change Experiment")
|
654 |
|
655 |
new_experiment_button.click(
|
656 |
fn=new_experiment_default,
|
657 |
+
inputs=[new_experiment_a, experiment_input]
|
658 |
)
|
659 |
|
660 |
remove_experiment_button.click(
|
661 |
fn=remove_experiment_default,
|
662 |
+
inputs=[remove_experiment_a, experiment_input]
|
663 |
)
|
664 |
|
665 |
change_experiment_button.click(
|
666 |
fn=change_experiment_default,
|
667 |
+
inputs=[change_experiment_a, experiment_input]
|
668 |
)
|
669 |
|
670 |
with gr.Blocks():
|