Umer797 commited on
Commit
040af41
·
verified ·
1 Parent(s): 23d8a2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -42,12 +42,18 @@ with gr.Blocks() as demo:
42
  gr.Markdown("# GAIA LangGraph Agent")
43
  gr.Markdown("Log in and run your agent to evaluate on GAIA benchmark.")
44
 
45
- gr.LoginButton()
46
  run_button = gr.Button("Run Evaluation & Submit All Answers")
47
  status_output = gr.Textbox(label="Run Status", lines=5)
48
  results_table = gr.DataFrame(label="Results")
49
 
50
- run_button.click(run_and_submit_all, outputs=[status_output, results_table])
 
 
 
 
 
 
51
 
52
  if __name__ == "__main__":
53
  demo.launch()
 
42
  gr.Markdown("# GAIA LangGraph Agent")
43
  gr.Markdown("Log in and run your agent to evaluate on GAIA benchmark.")
44
 
45
+ login_button = gr.LoginButton()
46
  run_button = gr.Button("Run Evaluation & Submit All Answers")
47
  status_output = gr.Textbox(label="Run Status", lines=5)
48
  results_table = gr.DataFrame(label="Results")
49
 
50
+ run_button.click(
51
+ fn=run_and_submit_all,
52
+ inputs=[login_button],
53
+ outputs=[status_output, results_table]
54
+ )
55
+
56
+
57
 
58
  if __name__ == "__main__":
59
  demo.launch()