Minor testing of agent functionality.
Browse files
app.py
CHANGED
@@ -120,6 +120,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
120 |
print(f"Error running agent on task {task_id}: {e}")
|
121 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
122 |
|
|
|
|
|
123 |
if not answers_payload:
|
124 |
print("Agent did not produce any answers to submit.")
|
125 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
|
|
120 |
print(f"Error running agent on task {task_id}: {e}")
|
121 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
122 |
|
123 |
+
return
|
124 |
+
|
125 |
if not answers_payload:
|
126 |
print("Agent did not produce any answers to submit.")
|
127 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|