Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -149,6 +149,11 @@ def main():
|
|
149 |
submit_button = gr.Button("πSolve")
|
150 |
question = gr.Code(language='python', value='what is the integral of x^2 from 0 to 2?', label="π€Enter your math problem")
|
151 |
additional_info = gr.Text(value='Please reason step by step, and put your final answer within \\boxed{{}}', label="πͺOptional train-of-thought")
|
|
|
|
|
|
|
|
|
|
|
152 |
with gr.Accordion("π€ UniMath Examples", open=False):
|
153 |
gr.Markdown("Click a π€ UniMath example to load it into the solver.")
|
154 |
for i, example in enumerate([unimath1, unimath2, unimath3, unimath4], start=1):
|
|
|
149 |
submit_button = gr.Button("πSolve")
|
150 |
question = gr.Code(language='python', value='what is the integral of x^2 from 0 to 2?', label="π€Enter your math problem")
|
151 |
additional_info = gr.Text(value='Please reason step by step, and put your final answer within \\boxed{{}}', label="πͺOptional train-of-thought")
|
152 |
+
|
153 |
+
def set_example(example):
|
154 |
+
question_field.update(example)
|
155 |
+
additional_info_field.update(additional_info_prompt)
|
156 |
+
|
157 |
with gr.Accordion("π€ UniMath Examples", open=False):
|
158 |
gr.Markdown("Click a π€ UniMath example to load it into the solver.")
|
159 |
for i, example in enumerate([unimath1, unimath2, unimath3, unimath4], start=1):
|