Spaces:
Sleeping
Sleeping
add answer submission
Browse files
app.py
CHANGED
|
@@ -114,18 +114,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 114 |
print(f"Error running agent on task {task_id}: {e}")
|
| 115 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
| 116 |
|
| 117 |
-
final_status = (
|
| 118 |
-
f"Submission Successful!\n"
|
| 119 |
-
f"User: TEST\n"
|
| 120 |
-
f"Overall Score: 'N/A'"
|
| 121 |
-
f"0"
|
| 122 |
-
f"Message: 0"
|
| 123 |
-
)
|
| 124 |
-
|
| 125 |
-
results_df = pd.DataFrame(results_log)
|
| 126 |
-
return final_status, results_df
|
| 127 |
-
|
| 128 |
-
"""
|
| 129 |
if not answers_payload:
|
| 130 |
print("Agent did not produce any answers to submit.")
|
| 131 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
|
@@ -177,7 +165,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 177 |
print(status_message)
|
| 178 |
results_df = pd.DataFrame(results_log)
|
| 179 |
return status_message, results_df
|
| 180 |
-
"""
|
| 181 |
|
| 182 |
|
| 183 |
# --- Build Gradio Interface using Blocks ---
|
|
|
|
| 114 |
print(f"Error running agent on task {task_id}: {e}")
|
| 115 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
| 116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
if not answers_payload:
|
| 118 |
print("Agent did not produce any answers to submit.")
|
| 119 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
|
|
|
| 165 |
print(status_message)
|
| 166 |
results_df = pd.DataFrame(results_log)
|
| 167 |
return status_message, results_df
|
|
|
|
| 168 |
|
| 169 |
|
| 170 |
# --- Build Gradio Interface using Blocks ---
|