Toumaima commited on
Commit
acb69b3
·
verified ·
1 Parent(s): 2c207cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -250,7 +250,14 @@ with gr.Blocks() as demo:
250
  """
251
  )
252
  gr.LoginButton()
253
- oauth_profile = gr.OAuthProfile()
 
 
 
 
 
 
 
254
  test_checkbox = gr.Checkbox(label="Enable Test Mode (Skip Submission)", value=False)
255
  run_button = gr.Button("Run Evaluation")
256
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
 
250
  """
251
  )
252
  gr.LoginButton()
253
+ # Fake test data
254
+ fake_user_data = {
255
+ "name": "Test User",
256
+ "email": "[email protected]",
257
+ "provider": "google"}
258
+
259
+ # Simulate OAuth profile for testing
260
+ oauth_profile = gr.OAuthProfile(data=fake_user_data)
261
  test_checkbox = gr.Checkbox(label="Enable Test Mode (Skip Submission)", value=False)
262
  run_button = gr.Button("Run Evaluation")
263
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)