Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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)]
|