Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,18 +137,18 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 137 |
# --- Gradio Interface ---
|
| 138 |
with gr.Blocks(title="Agent Evaluation Runner") as app:
|
| 139 |
gr.Markdown("""
|
| 140 |
-
## Advanced Agent Evaluation
|
| 141 |
Uses smolagents with proper tool schemas
|
| 142 |
""")
|
| 143 |
|
| 144 |
-
gr.
|
| 145 |
run_btn = gr.Button("Run Evaluation")
|
| 146 |
output = gr.Textbox(label="Results")
|
| 147 |
results_table = gr.DataFrame(label="Question Log")
|
| 148 |
|
| 149 |
run_btn.click(
|
| 150 |
fn=run_and_submit_all,
|
| 151 |
-
inputs=[], # <--
|
| 152 |
outputs=[output, results_table]
|
| 153 |
)
|
| 154 |
|
|
|
|
| 137 |
# --- Gradio Interface ---
|
| 138 |
with gr.Blocks(title="Agent Evaluation Runner") as app:
|
| 139 |
gr.Markdown("""
|
| 140 |
+
## Advanced Agent Evaluation
|
| 141 |
Uses smolagents with proper tool schemas
|
| 142 |
""")
|
| 143 |
|
| 144 |
+
profile = gr.OAuthProfile()
|
| 145 |
run_btn = gr.Button("Run Evaluation")
|
| 146 |
output = gr.Textbox(label="Results")
|
| 147 |
results_table = gr.DataFrame(label="Question Log")
|
| 148 |
|
| 149 |
run_btn.click(
|
| 150 |
fn=run_and_submit_all,
|
| 151 |
+
inputs=[profile], # <-- Corrected: OAuthProfile passed in
|
| 152 |
outputs=[output, results_table]
|
| 153 |
)
|
| 154 |
|