Tonic commited on
Commit
01d13d1
·
verified ·
1 Parent(s): 80a95ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,10 +27,10 @@ def main():
27
  with gr.Blocks() as demo:
28
  gr.Markdown(title)
29
  with gr.Row():
30
- question = gr.Textbox(lines=5, label="Enter your math problem")
31
  max_tokens = gr.Slider(minimum=150, maximum=1200, value=250, label="Max Tokens")
32
  submit_button = gr.Button("Solve")
33
- output = gr.Textbox(label="🔮DeepSeekMath📉")
34
 
35
  submit_button.click(fn=solve_math_problem, inputs=[question, max_tokens], outputs=output)
36
 
 
27
  with gr.Blocks() as demo:
28
  gr.Markdown(title)
29
  with gr.Row():
30
+ question = gr.Code(language='python', value='what is the integral of x^2 from 0 to 2?', label="Enter your math problem")
31
  max_tokens = gr.Slider(minimum=150, maximum=1200, value=250, label="Max Tokens")
32
  submit_button = gr.Button("Solve")
33
+ output = gr.Code(label="🔮DeepSeekMath📉", interactive=False)
34
 
35
  submit_button.click(fn=solve_math_problem, inputs=[question, max_tokens], outputs=output)
36