Unauthorized access to file Transformers.js

I converted a model to onnx and tried deploying it into a vercel app using nextjs as mentioned in the documentation but the model doesnt load up. The gate level access is granted but yet this error shows up

  • error Error: Unauthorized access to file: “https://huggingface.co/har1/hs2-model/resolve/main/tokenizer_config.json”.
    at handleError (/var/task/.next/server/chunks/619.js:16475:11)
    at getModelFile (/var/task/.next/server/chunks/619.js:16652:24)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getModelJSON (/var/task/.next/server/chunks/619.js:16703:18)
    at async Promise.all (index 1)
    at async loadTokenizer (/var/task/.next/server/chunks/619.js:18314:16)
    at async AutoTokenizer.from_pretrained (/var/task/.next/server/chunks/619.js:21587:48)
    at async Promise.all (index 0)
    at async pipeline (/var/task/.next/server/chunks/619.js:28579:17)
    at async GET (/var/task/.next/server/app/classify/route.js:162:24)