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)