Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,7 +122,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 122 |
question_text = questions_data[0].get("question")
|
| 123 |
task_id = questions_data[0].get("task_id")
|
| 124 |
print(f"Processing my question 0 : : : : : : :")
|
| 125 |
-
agent.run(question_text)
|
| 126 |
print(f"Answered Task {task_id}: {answer[:50]}...")
|
| 127 |
answers_payload = []
|
| 128 |
answers_payload.append({"task_id": task_id, "submitted_answer": answer})
|
|
|
|
| 122 |
question_text = questions_data[0].get("question")
|
| 123 |
task_id = questions_data[0].get("task_id")
|
| 124 |
print(f"Processing my question 0 : : : : : : :")
|
| 125 |
+
answer = agent.run(question_text)
|
| 126 |
print(f"Answered Task {task_id}: {answer[:50]}...")
|
| 127 |
answers_payload = []
|
| 128 |
answers_payload.append({"task_id": task_id, "submitted_answer": answer})
|