Unable to login to Hugging Face via Google Colab

#4
by Sebalon - opened

The Hugging Face login request on colab refuses to progress and indicates that I need to accept the licence for the model card but I've already done that for both 1.4 and 1.5. Please help.

Try if you can login with huggingface-cli from your local computer.
Make sure you use a valid token for the account that accepted the license.

I'm logged into my account on the huggingface website, I can access the tokens but generating a new one makes no difference, the huggingface login tool on google colab acts like I haven't accepted the licence and won't respond or proceed

make sure the generated token is set to write instead of read

make sure the generated token is set to write instead of read

Yep it already is, I'm gutted that I can't access Dreambooth anymore :(

Were you able to solve this? I have also set my generated token to write and pasted it in Google Colab but it won't let me progress?

I have the same problem, Check both the read and write tokens. the cell show process but after a long time nothing happens. Any help is appreciated.

I found a solution, I write here maybe help someone.
instead using: !huggingface-cli login
I found another login that works in google colab:
code:
from huggingface_hub import notebook_login
notebook_login()

It opens the input box and gets the token and will login. That work for me.

I understand it may seem a bit peculiar, but in my situation, pressing 'Enter' from the number keypad didn't trigger the desired action. However, using the main 'Enter' button did the trick! I hope this tip proves helpful.

Sign up or log in to comment