Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,9 @@ def get_username_from_token():
|
|
17 |
}
|
18 |
|
19 |
response = requests.get("https://huggingface.co/api/whoami", headers=headers)
|
|
|
|
|
|
|
20 |
if response.status_code == 200:
|
21 |
return response.json().get("name")
|
22 |
return None
|
|
|
17 |
}
|
18 |
|
19 |
response = requests.get("https://huggingface.co/api/whoami", headers=headers)
|
20 |
+
print(f"Response status: {response.status_code}")
|
21 |
+
print(f"Response content: {response.text}")
|
22 |
+
|
23 |
if response.status_code == 200:
|
24 |
return response.json().get("name")
|
25 |
return None
|