Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -133,7 +133,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 133 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 134 |
continue
|
| 135 |
try:
|
| 136 |
-
answer =
|
| 137 |
answers_payload.append({"task_id": task_id, "submitted_answer": answer})
|
| 138 |
print(f"Answered Task {task_id}: {answer[:50]}...")
|
| 139 |
except Exception as e:
|
|
|
|
| 133 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 134 |
continue
|
| 135 |
try:
|
| 136 |
+
answer = await agent.run(question_text) # await coroutine
|
| 137 |
answers_payload.append({"task_id": task_id, "submitted_answer": answer})
|
| 138 |
print(f"Answered Task {task_id}: {answer[:50]}...")
|
| 139 |
except Exception as e:
|