Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,8 +90,9 @@ async def smart_agent(questions_data: List[Dict[str, Any]]) -> List[Dict[str, An
|
|
| 90 |
print(f"Error on Task {task_id}: {e}")
|
| 91 |
return {"task_id": task_id, "submitted_answer": f"AGENT ERROR: {e}"}
|
| 92 |
|
| 93 |
-
tasks = [process_question(item) for item in questions_data]
|
| 94 |
-
|
|
|
|
| 95 |
|
| 96 |
print("✅ All tasks completed.")
|
| 97 |
return answers_payload
|
|
|
|
| 90 |
print(f"Error on Task {task_id}: {e}")
|
| 91 |
return {"task_id": task_id, "submitted_answer": f"AGENT ERROR: {e}"}
|
| 92 |
|
| 93 |
+
#tasks = [process_question(item) for item in questions_data]
|
| 94 |
+
process_question(questions_data[0])
|
| 95 |
+
#answers_payload = await asyncio.gather(*tasks)
|
| 96 |
|
| 97 |
print("✅ All tasks completed.")
|
| 98 |
return answers_payload
|