Spaces:
Paused
Paused
Update app.py
Browse files
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 |
|