Spaces:
Runtime error
Runtime error
Put clear and run on one line
Browse files
app.py
CHANGED
@@ -789,10 +789,10 @@ with gr.Blocks(css=css) as demo:
|
|
789 |
problem_example_1 = gr.Markdown(value=problem_1_display, elem_classes="problem-text")
|
790 |
copy_btn_1 = gr.Button("Copy", elem_classes="copy-button")
|
791 |
with gr.Row(elem_classes="problem-examples-container"):
|
792 |
-
|
793 |
value="Problem example 2", latex_delimiters=latex_delimiters, elem_classes="problem-container-label"
|
794 |
)
|
795 |
-
gr.Markdown(value=problem_2_display, elem_classes="problem-text")
|
796 |
copy_btn_2 = gr.Button("Copy", elem_classes="copy-button")
|
797 |
|
798 |
with gr.Row():
|
@@ -801,9 +801,9 @@ with gr.Blocks(css=css) as demo:
|
|
801 |
temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.1, label="Temperature")
|
802 |
with gr.Row():
|
803 |
out = gr.Markdown(elem_classes=["top-margin"], latex_delimiters=latex_delimiters)
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
|
808 |
btn.click(fn=solve_problem, inputs=[inp, temperature], outputs=out)
|
809 |
|
|
|
789 |
problem_example_1 = gr.Markdown(value=problem_1_display, elem_classes="problem-text")
|
790 |
copy_btn_1 = gr.Button("Copy", elem_classes="copy-button")
|
791 |
with gr.Row(elem_classes="problem-examples-container"):
|
792 |
+
gr.Markdown(
|
793 |
value="Problem example 2", latex_delimiters=latex_delimiters, elem_classes="problem-container-label"
|
794 |
)
|
795 |
+
problem_example_2 = gr.Markdown(value=problem_2_display, elem_classes="problem-text")
|
796 |
copy_btn_2 = gr.Button("Copy", elem_classes="copy-button")
|
797 |
|
798 |
with gr.Row():
|
|
|
801 |
temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.1, label="Temperature")
|
802 |
with gr.Row():
|
803 |
out = gr.Markdown(elem_classes=["top-margin"], latex_delimiters=latex_delimiters)
|
804 |
+
with gr.Row():
|
805 |
+
btn = gr.Button("Run")
|
806 |
+
btn_clear = gr.Button("Clear")
|
807 |
|
808 |
btn.click(fn=solve_problem, inputs=[inp, temperature], outputs=out)
|
809 |
|