Spaces:
Sleeping
Sleeping
debug
Browse files
agent.py
CHANGED
@@ -69,4 +69,5 @@ class Agent:
|
|
69 |
|
70 |
final_answer = re.sub(r"^FINAL ANSWER:\s*", "", agent_answer, flags=re.IGNORECASE)
|
71 |
print(f"Agent returning answer for task {task_id}: {final_answer}")
|
|
|
72 |
return final_answer
|
|
|
69 |
|
70 |
final_answer = re.sub(r"^FINAL ANSWER:\s*", "", agent_answer, flags=re.IGNORECASE)
|
71 |
print(f"Agent returning answer for task {task_id}: {final_answer}")
|
72 |
+
|
73 |
return final_answer
|
app.py
CHANGED
@@ -145,6 +145,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
145 |
continue
|
146 |
try:
|
147 |
submitted_answer = agent(question_text, task_id, question_file_name)
|
|
|
148 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
149 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
150 |
except Exception as e:
|
|
|
145 |
continue
|
146 |
try:
|
147 |
submitted_answer = agent(question_text, task_id, question_file_name)
|
148 |
+
print(f"Resposta task: {task_id} - {submitted_answer}")
|
149 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
150 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
151 |
except Exception as e:
|