muryshev commited on
Commit
2d7f158
1 Parent(s): 718a63c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,8 +14,8 @@ app = FastAPI(
14
 
15
 
16
  @app.post("/completion/")
17
- def get_answer(question: Prompt):
18
- answer = get_answer_from_llm(question.prompt)
19
  return answer
20
 
21
 
 
14
 
15
 
16
  @app.post("/completion/")
17
+ async def get_answer(question: Prompt):
18
+ answer = await get_answer_from_llm(question.prompt)
19
  return answer
20
 
21