Update app.py
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
clear_btn.click(
|
| 272 |
fn=lambda: (None, "", "Auto-detect from problem", "", "*Your solution will appear here.*"),
|
| 273 |
-
inputs=[],
|
|
|
|
|
|
|
| 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__":
|