lunarflu HF staff commited on
Commit
a66b2a3
·
verified ·
1 Parent(s): 7528556

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ def hello(profile: gr.OAuthProfile | None) -> str:
6
  # ^ expect a gr.OAuthProfile object as input to get the user's profile
7
  # if the user is not logged in, profile will be None
8
  if profile is None:
9
- return "I don't know you."
10
- return f"Hello {profile.name}"
11
 
12
 
13
 
 
6
  # ^ expect a gr.OAuthProfile object as input to get the user's profile
7
  # if the user is not logged in, profile will be None
8
  if profile is None:
9
+ return " Not logged in."
10
+ return f" Successfully logged in as `{profile.username}`."
11
 
12
 
13