raguv commited on
Commit
08ddc47
·
verified ·
1 Parent(s): ff92754

Update app.py

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