Toumaima commited on
Commit
a97c853
·
verified ·
1 Parent(s): f3f80ba

Add possibility of run

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -250,10 +250,15 @@ with gr.Blocks() as demo:
250
  """
251
  )
252
  gr.LoginButton()
253
- run_button = gr.Button("Run Evaluation & Submit All Answers")
 
254
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
255
  results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
256
- run_button.click(fn=run_and_submit_all, outputs=[status_output, results_table])
 
 
 
 
257
 
258
  if __name__ == "__main__":
259
  print("Launching Gradio Interface...")
 
250
  """
251
  )
252
  gr.LoginButton()
253
+ test_checkbox = gr.Checkbox(label="Enable Test Mode (Skip Submission)", value=False)
254
+ run_button = gr.Button("Run Evaluation")
255
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
256
  results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
257
+ run_button.click(
258
+ fn=run_and_submit_all,
259
+ inputs=[gr.OAuthProfile(), test_checkbox],
260
+ outputs=[status_output, results_table]
261
+ )
262
 
263
  if __name__ == "__main__":
264
  print("Launching Gradio Interface...")