lunarflu HF Staff commited on
Commit
ca90535
·
verified ·
1 Parent(s): 1607f2a

styling text

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -43,15 +43,15 @@ def hello(profile: gr.OAuthProfile | None, request: gr.Request) -> str:
43
  token = query_params.get('token', [None])[0]
44
 
45
  if user_id is None or token is None:
46
- return "❌ Invalid link. Missing user_id or token."
47
 
48
  if int(user_id) not in user_tokens or user_tokens[int(user_id)] != token:
49
- return "❌ Invalid or expired token."
50
 
51
  if profile is None:
52
- return f"❌ Not logged in. User ID: {user_id}"
53
 
54
- return f"✅ Successfully logged in as {profile.username}. User ID: {user_id}"
55
 
56
  with gr.Blocks() as demo:
57
  with gr.Row():
 
43
  token = query_params.get('token', [None])[0]
44
 
45
  if user_id is None or token is None:
46
+ return "# ❌ Invalid link. Generate a new one [here](https://discord.com/channels/879548962464493619/900125909984624713) !."
47
 
48
  if int(user_id) not in user_tokens or user_tokens[int(user_id)] != token:
49
+ return "# ❌ Invalid or expired link. Generate a new one [here](https://discord.com/channels/879548962464493619/900125909984624713) ! "
50
 
51
  if profile is None:
52
+ return f"# ❌ Not logged in with Hugging Face yet."
53
 
54
+ return f"# ✅ Successfully logged in as {profile.username}. User ID: {user_id}"
55
 
56
  with gr.Blocks() as demo:
57
  with gr.Row():