Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -208,7 +208,6 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
208 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
209 |
except Exception as e:
|
210 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
211 |
-
print(question_scorer("FINAL ANSWER: right",submitted_answer))
|
212 |
|
213 |
if not answers_payload:
|
214 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
@@ -234,6 +233,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
234 |
return final_status, pd.DataFrame(results_log)
|
235 |
except Exception as e:
|
236 |
return f"Submission Failed: {e}", pd.DataFrame(results_log)
|
|
|
237 |
|
238 |
# --- Build Gradio Interface ---
|
239 |
with gr.Blocks() as demo:
|
|
|
208 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
209 |
except Exception as e:
|
210 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
|
|
211 |
|
212 |
if not answers_payload:
|
213 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
|
|
233 |
return final_status, pd.DataFrame(results_log)
|
234 |
except Exception as e:
|
235 |
return f"Submission Failed: {e}", pd.DataFrame(results_log)
|
236 |
+
print(question_scorer("FINAL ANSWER: right",submitted_answer))
|
237 |
|
238 |
# --- Build Gradio Interface ---
|
239 |
with gr.Blocks() as demo:
|