Spaces:
Runtime error
Runtime error
Add logging to display task details in `hf_submission_api.py` during agent execution
Browse files
src/gaia_solving_agent/hf_submission_api.py
CHANGED
|
@@ -109,6 +109,8 @@ async def run_agent(agent, questions_data, additional_files):
|
|
| 109 |
for item in questions_data:
|
| 110 |
task_id = item.get("task_id")
|
| 111 |
question_text = item.get("question")
|
|
|
|
|
|
|
| 112 |
|
| 113 |
additional_file_path, additional_file = None, None
|
| 114 |
if item.get("file_name"):
|
|
|
|
| 109 |
for item in questions_data:
|
| 110 |
task_id = item.get("task_id")
|
| 111 |
question_text = item.get("question")
|
| 112 |
+
print(f"Running agent on task {task_id}:\n{question_text}")
|
| 113 |
+
print("-"*30)
|
| 114 |
|
| 115 |
additional_file_path, additional_file = None, None
|
| 116 |
if item.get("file_name"):
|