johnnychiang commited on
Commit
95e05db
·
verified ·
1 Parent(s): 27e648e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -642,15 +642,16 @@ with gr.Blocks() as demo:
642
  """
643
  )
644
 
645
- login_btn = gr.LoginButton()
 
646
  run_button = gr.Button("Run Evaluation & Submit All Answers")
647
 
648
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=8, interactive=False)
649
  results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
650
 
 
651
  run_button.click(
652
  fn=run_and_submit_all,
653
- inputs=[login_btn],
654
  outputs=[status_output, results_table]
655
  )
656
 
 
642
  """
643
  )
644
 
645
+ gr.LoginButton() # ✅ 不要存成變數
646
+
647
  run_button = gr.Button("Run Evaluation & Submit All Answers")
648
 
649
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=8, interactive=False)
650
  results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
651
 
652
+ # ❗❗ 這裡「不要 inputs」
653
  run_button.click(
654
  fn=run_and_submit_all,
 
655
  outputs=[status_output, results_table]
656
  )
657