Not able to login using notebook_login()/!huggingface-cli login
Hi, I am a complete beginner and this was my first attempt to use use the Huggingface products. I tried experimenting with this notebook (Audio-classification). The instructions up top said in clear words ‘First you have to store your authentication token from the Hugging Face website if you haven’t already!) then execute the following cell and input your username and password:’ I signed up and created a token and the prompt asked me to enterUsername&PasswordI entered the details and this was the message I got404 Client Error: Not Found for url:https://huggingface.co/api/loginErrorCannot POST /api/loginI tried entering my token instead of my passwordI tried changing my passwordSame result. Everywhere I go all the forums & tutorials login using a token. Am I doing something wrong?
2024-03-17T13:11:18Z
I’ve found that using login() rather than notebook_login() works better. The code looks like:from huggingface_hub import loginlogin(new_session=False, # Won’t request token if one is already saved on machinewrite_permission=True, # Requires a token with write permissiontoken=‘Your token’, # The name of your tokenadd_to_git_credential=True)Have a hugging face token ready ahead of time that you can copy and paste into the ‘token’ argument. If you created a token with a write permission, use write_permission=True. You won’t have to use the cli if you do it this way.
2024-08-16T10:00:08Z
You may have specified the wrong space.Make sure the access token you are using is for the intended space.