Can't login huggingface through kaggle notebook

Hey guys , i am facing a problem and can’t login through token in kaggle notebook

!huggingface-cli login

I typed but it’s not taking input in Toke

In opposite Google colab working fine

I need to run file in kaggle

Any solution?

I have the same problem here. Also the notebook_login() isn’t working (while it’s okay on colab).

Also noticed that on colab the huggingface_hub version is 0.11.1, but on kaggle is 0.10.1. Indeed installing directly from git doesn’t resolve the problem.

Actually i solved the problem transferring the files to the colab VM via the kaggle API and doing the push_to_hub on colab (i wanted to login to push the model to the hub). The kaggle API is super fast and super easy to setup, so this is my “production” solution :stuck_out_tongue:

I’m facing the same problem. How to upload a token to kaggle notebook and then use notebook_login()?