vishwakayireddi1234 commited on
Commit
cd3d0b1
·
verified ·
1 Parent(s): 80d0a02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -267,10 +267,17 @@ with gr.Blocks(css=CSS, title="Interactive Math Tutor") as demo:
267
  elem_classes=["output-box"],
268
  )
269
 
270
- solve_btn.click(fn=solve_math, inputs=[image_input, text_input, grade_dropdown, user_key], outputs=output_display)
 
 
 
 
 
271
  clear_btn.click(
272
  fn=lambda: (None, "", "Auto-detect from problem", "", "*Your solution will appear here.*"),
273
- inputs=[], outputs=[image_input, text_input, grade_dropdown, user_key, output_display],
 
 
274
  )
275
 
276
  if __name__ == "__main__":
 
267
  elem_classes=["output-box"],
268
  )
269
 
270
+ solve_btn.click(
271
+ fn=solve_math,
272
+ inputs=[image_input, text_input, grade_dropdown, user_key],
273
+ outputs=output_display,
274
+ api_name=False,
275
+ )
276
  clear_btn.click(
277
  fn=lambda: (None, "", "Auto-detect from problem", "", "*Your solution will appear here.*"),
278
+ inputs=[],
279
+ outputs=[image_input, text_input, grade_dropdown, user_key, output_display],
280
+ api_name=False,
281
  )
282
 
283
  if __name__ == "__main__":