wlchee commited on
Commit
d9fc97b
·
verified ·
1 Parent(s): c3e97df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.LoginButton()
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=[], # <-- This line is the required fix
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