Error 403! What to do about it?

Just one correction. Transformers library ver should be 4.44.2 (not 0.44.2). Thanks

One more tip, you should refresh the token, or just simply recreate a new one with “write” mode.
Using an old “write” token might not work.

1 Like

you need HF_TOKEN write permissions.
Then check the HF_TOKEN variable. Then disconnect and delete runtime. Connect again and try again.

1 Like

thank you so much

1 Like

I already have a token with write permission but I’m still getting 403 forbidden error

1 Like

Yes! `HF_TOKEN=token

os.environ[“HF_TOKEN”] = token` can works. all other ways cannot . It is sad.