Spaces:
Runtime error
Runtime error
Download app.py from RAMYASRI-39/Mathematic_problem_solver: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/spaces/RAMYASRI-39/Mathematic_problem_solver/resolve/main/app.py
- Command line
-
hf download hf://spaces/RAMYASRI-39/Mathematic_problem_solver/app.py
-
curl -L -o app.py https://huggingface.co/spaces/RAMYASRI-39/Mathematic_problem_solver/resolve/main/app.py
687 Bytes
| import gradio as gr | |
| from gradio_client import Client | |
| def solve_math_problem(inp_text): | |
| client = Client("AI-MO/math-olympiad-solver") | |
| result = client.predict( | |
| inp_text=inp_text, | |
| temperature=0.1, | |
| api_name="/solve_problem_wrapper" | |
| ) | |
| return f"### Magic Unleashed:\n\n{result}" | |
| iface = gr.Interface( | |
| fn=solve_math_problem, | |
| inputs="text", | |
| outputs="markdown", | |
| title="Math Wizardry: Unravel CBSE Challenges 🧙♂️", | |
| description="Enter your CBSE math problem and watch the solution appear like magic, complete with explanations! Developed by K.M.Ramyasri ,TGT ,GHS Suthukeny ,Puducherry!" | |
| ) | |
| iface.launch(share=True,debug=True) |