Hello,
I read more solutions for this problem, but no one is valid for me.
I use huggingface with nodejs.
Also with a simple code I have the error.
const { HfInference } = require(ā@huggingface/inferenceā);
const hf = new HfInference({ token: āhf_ā¦ā }); //
await hf.featureExtraction({
model: āsentence-transformers/distilbert-base-nli-mean-tokensā,
inputs: āThat is a happy personā,
});
I checked
Write access to contents/settings of all repos under your personal namespace
Make calls to the serverless Inference API
in ther option of the AccessToken
Maybe someone can help me.