Spaces:
Sleeping
Sleeping
File size: 242 Bytes
e41e644 | 1 2 3 4 5 6 7 8 9 | from huggingface_hub import HfApi
from fso_token_vault_setup import setup_token_vault
v = setup_token_vault()
token = v.access_data("HF_TOKEN", 256, 4)
api = HfApi(token=token)
user_info = api.whoami()
print(f"HF User: {user_info['name']}")
|