Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
move all support to discord
Browse files
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
|
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
|
870 |
-
print(f"# β The Discord account {user_id} is already verified! To change discord accounts or HF accounts, contact @lunarflu
|
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)]
|