Spaces:
Runtime error
Runtime error
return result of 'process_user_message' from endpoint
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ async def num_one(request: Request):
|
|
124 |
message_data = ast.literal_eval(data_dict.get('message_data', '').get('message_body', ''))
|
125 |
user_id = message_data['user_id']
|
126 |
message_text = message_data['message_text']
|
127 |
-
|
128 |
|
129 |
|
130 |
@app.post("/start")
|
|
|
124 |
message_data = ast.literal_eval(data_dict.get('message_data', '').get('message_body', ''))
|
125 |
user_id = message_data['user_id']
|
126 |
message_text = message_data['message_text']
|
127 |
+
return num_one_quiz.process_user_message(user_id, message_text)
|
128 |
|
129 |
|
130 |
@app.post("/start")
|