Invalid token passed?

Thanks a lot. it worked

This confused me as I couldn’t right click and select paste. You right click and it will autopaste, and do so invisibly which is even more confusing. But +1 this worked for me.

Example Using Anaconda:
Load Environment
Open Terminal
Run: huggingface-cli login
Create appropriate Token from HugginFace website, under access tokens
Select token and copy (ctrl+c for windows)
On your Open Terminal, right click the mouse. YOU WILL SEE NOTHING. Hit enter.

1 Like

If you want to automate through a script. Try

import subprocess
subprocess.run(["huggingface-cli", "login", "--token", TOKEN])

where TOKEN is saved as a string as environment variable. For windows it can be os.environ["PATH"] = f"{huggingface_bin_path}:{os.environ['PATH']}" The huggingface_bin_path can be found by doing a which huggingface_bin_path

Thanks mate !

Thanks. Its working