Toumaima commited on
Commit
7fb49b8
·
verified ·
1 Parent(s): c2fe318

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -175,7 +175,6 @@ class BasicAgent:
175
  # --- Evaluation Logic ---
176
  def run_and_submit_all(profile: gr.OAuthProfile | None):
177
  space_id = os.getenv("SPACE_ID")
178
- profile = get_oauth_profile()
179
  if profile:
180
  username = profile.username
181
  print(f"User logged in: {username}")
@@ -252,6 +251,7 @@ with gr.Blocks() as demo:
252
  """
253
  )
254
  gr.LoginButton()
 
255
  test_checkbox = gr.Checkbox(label="Enable Test Mode (Skip Submission)", value=False)
256
  run_button = gr.Button("Run Evaluation")
257
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
 
175
  # --- Evaluation Logic ---
176
  def run_and_submit_all(profile: gr.OAuthProfile | None):
177
  space_id = os.getenv("SPACE_ID")
 
178
  if profile:
179
  username = profile.username
180
  print(f"User logged in: {username}")
 
251
  """
252
  )
253
  gr.LoginButton()
254
+ oauth_profile = gr.OAuthProfile()
255
  test_checkbox = gr.Checkbox(label="Enable Test Mode (Skip Submission)", value=False)
256
  run_button = gr.Button("Run Evaluation")
257
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)