openfree commited on
Commit
8ccc387
·
verified ·
1 Parent(s): 629e9cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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