Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,6 +81,8 @@ else:
|
|
| 81 |
# confusion, as access_token returned above is a Org token and not Personal token!!
|
| 82 |
#login(token=access_token)
|
| 83 |
user_info = whoami(token=access_token)
|
|
|
|
|
|
|
| 84 |
|
| 85 |
#lets try calling without access-token - failed as user credentials missing!
|
| 86 |
#user_info = requests.get("https://huggingface.co/api/whoami-v2").json()
|
|
|
|
| 81 |
# confusion, as access_token returned above is a Org token and not Personal token!!
|
| 82 |
#login(token=access_token)
|
| 83 |
user_info = whoami(token=access_token)
|
| 84 |
+
print(f"=======sdk whoami :\n {user_info.json()}")
|
| 85 |
+
|
| 86 |
|
| 87 |
#lets try calling without access-token - failed as user credentials missing!
|
| 88 |
#user_info = requests.get("https://huggingface.co/api/whoami-v2").json()
|