Spaces:
Runtime error
Space is not working invalid Token has not been saved to git credential helper
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!
Thanks for the heads up! I updated the code.
It's fixed now!