create_repo does not work unless you set private argument
See original GitHub issueDescribe the bug
create_repo does not work if private
is not set. In https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1458 we should likely set a boolean.
Internal discussion https://huggingface.slack.com/archives/C02V5EA0A95/p1654783848296429
Reproduction
I just tried
create_repo("osanseviero/test_copy", token="TOKEN")
Logs
HTTPError: 400 Client Error: Bad Request for url: https://huggingface.co/api/repos/create - "private" must be a boolean
System Info
huggingface-hub-0.7.0, Colab and Space
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
[RFE] Create module YAML file based from a given set of RPM ...
In the end, I would like to be able with "createrepo_c" and "modifyrepo_c" to create a repository where dnf is not yelling "Error:...
Read more >Tools for maintaining yum repositories - Server Fault
Since a yum repository is just a directory that you run createrepo(8) against and serve over http, functions you mention like uploading, keeping...
Read more >Create a repo - GitHub Docs
Create a repository. You can store a variety of projects in GitHub repositories, including open source projects. With open source projects, you can...
Read more >Creating a Redhat package repository - Linux Tutorials
In this tutorial, we show the step by step instructions to create a custom Red Hat package repository via the Linux command line....
Read more >createrepo - Manages creation of yum repositories
The createrepo module allows you to create and update yum repositories. ... If set to false the cron job will not be created...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
(we’ll keep supporting server-side otherwise old versions of
huggingface_hub
won’t work anymore)yes what i meant is that we won’t be able to drop the server fix anyways, but ok to update the behavior here