Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,8 +145,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 145 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 146 |
continue
|
| 147 |
try:
|
| 148 |
-
|
| 149 |
-
answer = agent.run(question_text) # await coroutine
|
| 150 |
answers_payload.append({"task_id": task_id, "submitted_answer": answer})
|
| 151 |
print(f"Answered Task {task_id}: {answer[:50]}...")
|
| 152 |
except Exception as e:
|
|
|
|
| 145 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 146 |
continue
|
| 147 |
try:
|
| 148 |
+
answer = await agent.run(question_text) # await coroutine
|
|
|
|
| 149 |
answers_payload.append({"task_id": task_id, "submitted_answer": answer})
|
| 150 |
print(f"Answered Task {task_id}: {answer[:50]}...")
|
| 151 |
except Exception as e:
|