lunarflu HF staff commited on
Commit
beddd27
Β·
verified Β·
1 Parent(s): 359b637

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -831,7 +831,7 @@ def verify_button(profile: gr.OAuthProfile | None, request: gr.Request) -> str:
831
 
832
  # check if hf_user_name in dataframe:
833
  if profile.username in global_df['hf_user_name'].values:
834
- return (f"The HF account {profile.username} is already verified! To change discord accounts or HF accounts, contact @lunarflu or [email protected]")
835
 
836
  # check if discord_user_id in dataframe:
837
  altered_member_id = "L" + str(member.id) + "L"
@@ -845,11 +845,11 @@ def verify_button(profile: gr.OAuthProfile | None, request: gr.Request) -> str:
845
  global_df.loc[global_df['discord_user_id'] == altered_member_id, 'verified_date'] = verified_date
846
  org_link = "https://huggingface.co/organizations/discord-community/share/wPKRAHYbAlaEaCxUxcqVyaaaeZcYagDvqc"
847
  invite_message = "Click to join our community org on the HF Hub!"
848
- return (f" βœ… Verification successful! [{member} <---> {profile.username}] πŸ€—\n{invite_message}\n{org_link} ")
849
- print(f" βœ… Verification successful! [{member} <---> {profile.username}] πŸ€—")
850
  else:
851
- return (f" ❌ The Discord account {member} is already verified! To change discord accounts or HF accounts, contact @lunarflu or [email protected]")
852
- print(f"The Discord account {member} is already verified! To change discord accounts or HF accounts, contact @lunarflu or [email protected]")
853
 
854
  # Remove the token after successful verification
855
  del user_tokens[int(user_id)]
 
831
 
832
  # check if hf_user_name in dataframe:
833
  if profile.username in global_df['hf_user_name'].values:
834
+ return (f"# ❌ The HF account {profile.username} is already verified! To change discord accounts or HF accounts, contact @lunarflu or [email protected]")
835
 
836
  # check if discord_user_id in dataframe:
837
  altered_member_id = "L" + str(member.id) + "L"
 
845
  global_df.loc[global_df['discord_user_id'] == altered_member_id, 'verified_date'] = verified_date
846
  org_link = "https://huggingface.co/organizations/discord-community/share/wPKRAHYbAlaEaCxUxcqVyaaaeZcYagDvqc"
847
  invite_message = "Click to join our community org on the HF Hub!"
848
+ return (f"# βœ… Verification successful! [{member} <---> {profile.username}] πŸ€—\n{invite_message}\n{org_link} ")
849
+ print(f"# βœ… Verification successful! [{member} <---> {profile.username}] πŸ€—")
850
  else:
851
+ return (f"# ❌ The Discord account {member} is already verified! To change discord accounts or HF accounts, contact @lunarflu or [email protected]")
852
+ print(f"# ❌ The Discord account {member} is already verified! To change discord accounts or HF accounts, contact @lunarflu or [email protected]")
853
 
854
  # Remove the token after successful verification
855
  del user_tokens[int(user_id)]