lunarflu HF staff commited on
Commit
57726d8
·
verified ·
1 Parent(s): 4a452b5

some cleanup

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