RAMYASRI-39 commited on
Commit
2130b48
1 Parent(s): 444d4a6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_client import Client
3
+
4
+ def solve_math_problem(inp_text):
5
+ client = Client("AI-MO/math-olympiad-solver")
6
+ result = client.predict(
7
+ inp_text=inp_text,
8
+ temperature=0.1,
9
+ api_name="/solve_problem_wrapper"
10
+ )
11
+ return f"### Magic Unleashed:\n\n{result}"
12
+
13
+ iface = gr.Interface(
14
+ fn=solve_math_problem,
15
+ inputs="text",
16
+ outputs="markdown",
17
+ title="Math Wizardry: Unravel CBSE Challenges 🧙‍♂️",
18
+ 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!"
19
+ )
20
+
21
+ iface.launch(debug=True)