SerotoninRonin commited on
Commit
b9a6c6b
·
1 Parent(s): 62bc3ff

Uncommenting necessary code for HF

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -102,9 +102,9 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
102
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
103
 
104
  # 4. Prepare Submission
105
- # submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
106
- # status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
107
- # print(status_update)
108
 
109
  # 5. Submit
110
  print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
@@ -168,7 +168,7 @@ with gr.Blocks() as demo:
168
  """
169
  )
170
 
171
- # gr.LoginButton()
172
 
173
  run_button = gr.Button("Run Evaluation & Submit All Answers")
174
 
 
102
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
103
 
104
  # 4. Prepare Submission
105
+ submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
106
+ status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
107
+ print(status_update)
108
 
109
  # 5. Submit
110
  print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
 
168
  """
169
  )
170
 
171
+ gr.LoginButton()
172
 
173
  run_button = gr.Button("Run Evaluation & Submit All Answers")
174