Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,8 +41,4 @@ def get_math_response(user_question):
|
|
| 41 |
async def solve_math(query: MathQuery):
|
| 42 |
user_question = query.question
|
| 43 |
answer = get_math_response(user_question)
|
| 44 |
-
return {"question": user_question, "answer": answer}
|
| 45 |
-
|
| 46 |
-
@app.get("/")
|
| 47 |
-
def root():
|
| 48 |
-
return {"message": "Welcome to the FastAPI Math Solver!"}
|
|
|
|
| 41 |
async def solve_math(query: MathQuery):
|
| 42 |
user_question = query.question
|
| 43 |
answer = get_math_response(user_question)
|
| 44 |
+
return {"question": user_question, "answer": answer}
|
|
|
|
|
|
|
|
|
|
|
|