joronoso commited on
Commit
17a863d
·
verified ·
1 Parent(s): 19f40eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -20,6 +20,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
20
  if profile:
21
  username= f"{profile.username}"
22
  print(f"User logged in: {username}")
 
 
23
  else:
24
  print("User not logged in.")
25
  return "Please Login to Hugging Face with the button.", None
 
20
  if profile:
21
  username= f"{profile.username}"
22
  print(f"User logged in: {username}")
23
+ if username != os.getenv("whoami")
24
+ return "You are not me", None
25
  else:
26
  print("User not logged in.")
27
  return "Please Login to Hugging Face with the button.", None