arshadrana commited on
Commit
f26cec9
·
verified ·
1 Parent(s): 20476b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import os
2
- from fastapi import FastAPI, Request
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}