"Create a new repo" doesn't work

#18
by kerls - opened

When using the create new repo option in the space, it fails due to:

Error
404 Client Error. (Request ID: Root=1-64b1b409-3c0803c302b7888b418a857d)

Repository Not Found for url: https://huggingface.co/api/models/my-model/preupload/main?create_pr=1.
Please make sure you specified the correct repo_id and repo_type.
If you are trying to access a private or gated repo, make sure you are authenticated.
Note: Creating a commit assumes that the repo already exists on the Huggingface Hub. Please use create_repo if it’s not the case.

You can open a discussion on the Hugging Face Hub to report this issue.

However, it works with "Submit a PR to the original repo"

Core ML Projects org

Hello @kerls !

In order to create a new repo, you need to provide a token with "write" permissions. You can create such a token in your user profile:
Screenshot 2023-07-15 at 17.38.14.png

Yep, I was using a WRITE token and still got that error

Sign up or log in to comment