I'm using kaggle API to download a private model from kaggle and setup my credentials of API in the .kaggle file also tried setting it up with env variables, still downloading of model fail with error 403
You don't have permission to access resource at URL: https://www.kaggle.com/api/v1/models/username/model_name/framework/variant/1/download/config.json Please make sure you are authenticated if you are trying to access a private resource or a resource requiring consent.