Scott Cogan commited on
Commit
ef598ee
·
1 Parent(s): 33b2d23
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -368,22 +368,11 @@ with gr.Blocks() as demo:
368
 
369
  with gr.Row():
370
  login_button = gr.LoginButton()
371
- run_button = gr.Button("Run Evaluation & Submit All Answers", interactive=False)
372
 
373
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
374
  results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
375
 
376
- def enable_run_button(profile):
377
- if profile:
378
- return True
379
- return False
380
-
381
- login_button.click(
382
- fn=enable_run_button,
383
- inputs=[login_button],
384
- outputs=[run_button]
385
- )
386
-
387
  def run_evaluation(profile):
388
  if not profile:
389
  return "Please login first.", None
 
368
 
369
  with gr.Row():
370
  login_button = gr.LoginButton()
371
+ run_button = gr.Button("Run Evaluation & Submit All Answers") # always enabled
372
 
373
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
374
  results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
375
 
 
 
 
 
 
 
 
 
 
 
 
376
  def run_evaluation(profile):
377
  if not profile:
378
  return "Please login first.", None