Spaces:
Running
Running
styling text
Browse files
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.
|
47 |
|
48 |
if int(user_id) not in user_tokens or user_tokens[int(user_id)] != token:
|
49 |
-
return "❌ Invalid or expired
|
50 |
|
51 |
if profile is None:
|
52 |
-
return f"❌ Not logged in
|
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():
|