Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import os
|
| 2 |
-
from fastapi import FastAPI
|
| 3 |
from pydantic import BaseModel
|
| 4 |
import dashscope
|
| 5 |
from dashscope import Generation
|
|
@@ -41,4 +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}
|
|
|
|
| 1 |
import os
|
| 2 |
+
from fastapi import FastAPI
|
| 3 |
from pydantic import BaseModel
|
| 4 |
import dashscope
|
| 5 |
from dashscope import Generation
|
|
|
|
| 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}
|