Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
burtenshaw
commited on
Commit
·
b0bb8b4
1
Parent(s):
c6b4c88
fix error
Browse files
app.py
CHANGED
@@ -146,7 +146,8 @@ def check_certification(token: gr.OAuthToken | None, profile: gr.OAuthProfile |
|
|
146 |
except IndexError:
|
147 |
last_name = ""
|
148 |
profile_url = profile.picture
|
149 |
-
|
|
|
150 |
return (
|
151 |
"Please login with your Hugging Face account to check certification status",
|
152 |
None,
|
|
|
146 |
except IndexError:
|
147 |
last_name = ""
|
148 |
profile_url = profile.picture
|
149 |
+
|
150 |
+
if not username:
|
151 |
return (
|
152 |
"Please login with your Hugging Face account to check certification status",
|
153 |
None,
|