Spaces:
Running
Running
TahaFawzyElshrif commited on
Commit ·
14faaa0
1
Parent(s): 5a8e898
working on queue, finalization
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ def call(request: RequestAnswer):
|
|
| 91 |
if answer is None:
|
| 92 |
return {"status": "error"}
|
| 93 |
elif "status" in answer and json.loads(answer)["status"] == "pending":
|
| 94 |
-
return {"status": "
|
| 95 |
else:
|
| 96 |
|
| 97 |
redis_conn.delete(f'ANSWER_FOR_USER_ID{request.user_id}_OF_{request.msg_id}') # Clean up after fetching for memory and better secure as double call is wrong
|
|
|
|
| 91 |
if answer is None:
|
| 92 |
return {"status": "error"}
|
| 93 |
elif "status" in answer and json.loads(answer)["status"] == "pending":
|
| 94 |
+
return {"status": "pending"}
|
| 95 |
else:
|
| 96 |
|
| 97 |
redis_conn.delete(f'ANSWER_FOR_USER_ID{request.user_id}_OF_{request.msg_id}') # Clean up after fetching for memory and better secure as double call is wrong
|