lunarflu HF staff commited on
Commit
215dffc
Β·
verified Β·
1 Parent(s): f81413e

move all support to discord

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -848,7 +848,7 @@ def verify_button(profile: gr.OAuthProfile | None, request: gr.Request) -> str:
848
 
849
  # check if hf_user_name in dataframe:
850
  if profile.username in global_df['hf_user_name'].values:
851
- return (f"# ❌ The HF account {profile.username} is already verified! To change discord accounts or HF accounts, contact @lunarflu or adam@huggingface.co")
852
 
853
  # check if discord_user_id in dataframe:
854
  altered_member_id = "L" + str(user_id) + "L"
@@ -866,8 +866,8 @@ def verify_button(profile: gr.OAuthProfile | None, request: gr.Request) -> str:
866
  return (f"# βœ… Verification successful! [Discord ID {user_id} <---> {profile.username}] πŸ€—\n{invite_message}\n{org_link} ")
867
  print(f"# βœ… Verification successful! [Discord ID {user_id} <---> {profile.username}] πŸ€—")
868
  else:
869
- return (f"# ❌ The Discord account {user_id} is already verified! To change discord accounts or HF accounts, contact @lunarflu or adam@huggingface.co")
870
- print(f"# ❌ The Discord account {user_id} is already verified! To change discord accounts or HF accounts, contact @lunarflu or adam@huggingface.co")
871
 
872
  # Remove the token after successful verification
873
  del user_tokens[int(user_id)]
 
848
 
849
  # check if hf_user_name in dataframe:
850
  if profile.username in global_df['hf_user_name'].values:
851
+ return (f"# ❌ The HF account {profile.username} is already verified! To change discord accounts or HF accounts, contact @lunarflu on discord")
852
 
853
  # check if discord_user_id in dataframe:
854
  altered_member_id = "L" + str(user_id) + "L"
 
866
  return (f"# βœ… Verification successful! [Discord ID {user_id} <---> {profile.username}] πŸ€—\n{invite_message}\n{org_link} ")
867
  print(f"# βœ… Verification successful! [Discord ID {user_id} <---> {profile.username}] πŸ€—")
868
  else:
869
+ return (f"# ❌ The Discord account {user_id} is already verified! To change discord accounts or HF accounts, contact @lunarflu on discord")
870
+ print(f"# ❌ The Discord account {user_id} is already verified! To change discord accounts or HF accounts, contact @lunarflu on discord")
871
 
872
  # Remove the token after successful verification
873
  del user_tokens[int(user_id)]