Unable to upload custom Pytorch model in huggingface

I created a custom generative pytorch model . but while uploading to hugging face i cannot access hosted API … help me fix it!!