Alvinn-aai commited on
Commit
51358a5
·
1 Parent(s): a992256

remove status line

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -154,8 +154,8 @@ def gate_submission(profile: gr.OAuthProfile | None):
154
  - status line
155
  """
156
  if profile is None:
157
- return gr.update(visible=True), gr.update(visible=False), "You're not signed in."
158
- return gr.update(visible=False), gr.update(visible=True), f"Signed in as @{profile.username}"
159
 
160
 
161
  blocks = gr.Blocks(css=custom_css)
@@ -258,7 +258,7 @@ with blocks:
258
  blocks.load(lambda: leaderboard_df, inputs=[], outputs=[leaderboard_component])
259
 
260
  # On initial load (and after OAuth redirect), toggle the UI based on login status.
261
- blocks.load(gate_submission, inputs=None, outputs=[login_box, submit_panel, status_line])
262
 
263
 
264
  logger.info("Scheduler")
 
154
  - status line
155
  """
156
  if profile is None:
157
+ return gr.update(visible=True), gr.update(visible=False)
158
+ return gr.update(visible=False), gr.update(visible=True)
159
 
160
 
161
  blocks = gr.Blocks(css=custom_css)
 
258
  blocks.load(lambda: leaderboard_df, inputs=[], outputs=[leaderboard_component])
259
 
260
  # On initial load (and after OAuth redirect), toggle the UI based on login status.
261
+ blocks.load(gate_submission, inputs=None, outputs=[login_box, submit_panel])
262
 
263
 
264
  logger.info("Scheduler")