Token API of hugging face

I did create an api token and copied and pasted it into my script, (Bearer blahlabvas…), but i still get that error even if my code is valid

1 Like

If you want to send a test-file I can help you further but, I’m not sure what else to tell you because the code works for everyone else. Did you agree to the term of use?


Some models are ‘gated’ and you are granted access by visiting the model page agree.

1 Like

Wrong category, consider moving this to #help-and-feedback

2 Likes

Alright I will send all the files tomorrow. Btw thanks so much for the patience and help… I will also try doing some more testing myself to see if I can figure it out myself too, else I will probably give up.

1 Like