Space is not working invalid Token has not been saved to git credential helper

#3
by 5m4ck3r - opened

Please fix the space its not working :-(

Token has not been saved to git credential helper. Pass add_to_git_credential=True if you want to set the git credential as well.
Traceback (most recent call last):
File "/home/user/app/app.py", line 7, in
huggingface_hub.login(token=os.environ["HF_TOKEN"])
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/huggingface_hub/_login.py", line 110, in login
_login(token, add_to_git_credential=add_to_git_credential, write_permission=write_permission)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/huggingface_hub/_login.py", line 306, in _login
raise ValueError("Invalid token passed!")
ValueError: Invalid token passed!

FAVA org

Thanks for the heads up! I updated the code.

FAVA org

It's fixed now!

akariasai changed discussion status to closed

Sign up or log in to comment