cowrycode commited on
Commit
dba216b
·
verified ·
1 Parent(s): bb28ac7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- answers_payload = await asyncio.gather(*tasks)
 
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