How to login to Huggingface Hub with Access Token

I initially created read and write tokens at Hugging Face – The AI community building the future. as below:

In the python code, I am using the following import and the necessary access token.

from huggingface_hub import login
access_token_read = “abc”
access_token_write = “xyz”
login(token = access_token_read)

19 Likes