Makima57 commited on
Commit
57dc295
·
verified ·
1 Parent(s): 0302f9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -175,10 +175,12 @@ interface = gr.Interface(
175
  fn=gradio_interface,
176
  inputs=[
177
  gr.Textbox(label="🧠 Math Question", placeholder="Enter your math question here...", elem_id="math_question"),
178
- gr.Textbox(label="✅ Correct Answer", placeholder="Enter the correct answer here...", elem_id="correct_answer"),
179
  ],
180
  outputs=[
181
- gr.JSON(label="📊 Results"), # Display the results in a JSON format
 
 
182
  ],
183
  title="🔢 Math Question Solver",
184
  description="Enter a math question to get the model's majority-voted answer and steps to solve the problem.",
 
175
  fn=gradio_interface,
176
  inputs=[
177
  gr.Textbox(label="🧠 Math Question", placeholder="Enter your math question here...", elem_id="math_question"),
178
+
179
  ],
180
  outputs=[
181
+ gr.Textbox(label="Majority-Voted Answer", interactive=False), # Non-editable
182
+ gr.Textbox(label="Steps to Solve", interactive=False), # Non-editable
183
+ gr.Textbox(label="✅ Correct Solution", interactive=True), # Editable textbox for correct solution
184
  ],
185
  title="🔢 Math Question Solver",
186
  description="Enter a math question to get the model's majority-voted answer and steps to solve the problem.",