Commit
·
f253dd9
1
Parent(s):
385a043
..
Browse files
app.py
CHANGED
|
@@ -366,7 +366,6 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 366 |
except Exception as e:
|
| 367 |
print(f"Submission Failed: {e}"); return f"Submission Failed: {e}", pd.DataFrame(results_log)
|
| 368 |
|
| 369 |
-
# --- Gradio Interface (Unchanged) ---
|
| 370 |
with gr.Blocks() as demo:
|
| 371 |
gr.Markdown("# Gaia Level 1 Agent (LLM-Powered) Evaluation Runner")
|
| 372 |
gr.Markdown(
|
|
@@ -382,7 +381,8 @@ with gr.Blocks() as demo:
|
|
| 382 |
run_button = gr.Button("Run Evaluation & Submit All Answers")
|
| 383 |
status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
| 384 |
results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
|
| 385 |
-
|
|
|
|
| 386 |
|
| 387 |
if __name__ == "__main__":
|
| 388 |
print("\n" + "-"*30 + " App Starting " + "-"*30)
|
|
|
|
| 366 |
except Exception as e:
|
| 367 |
print(f"Submission Failed: {e}"); return f"Submission Failed: {e}", pd.DataFrame(results_log)
|
| 368 |
|
|
|
|
| 369 |
with gr.Blocks() as demo:
|
| 370 |
gr.Markdown("# Gaia Level 1 Agent (LLM-Powered) Evaluation Runner")
|
| 371 |
gr.Markdown(
|
|
|
|
| 381 |
run_button = gr.Button("Run Evaluation & Submit All Answers")
|
| 382 |
status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
| 383 |
results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
|
| 384 |
+
|
| 385 |
+
run_button.click(fn=run_and_submit_all, inputs=[], outputs=[status_output, results_table])
|
| 386 |
|
| 387 |
if __name__ == "__main__":
|
| 388 |
print("\n" + "-"*30 + " App Starting " + "-"*30)
|