Spaces:
basit123796
/
Runtime error

Tonic commited on
Commit
1178a05
Β·
verified Β·
1 Parent(s): 74d6bf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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):