[🐞 BUG?] Empty README.md with YAML header gets overwritten for datasets
See original GitHub issueIs your feature request related to a problem? Please describe.
When I have a README.md with a YAML header and no text content, I get the No dataset card yet New: Create and edit your dataset card directly on the website! Create Dataset Card
which, if clicked, will create a new empty README.md and overwrite the committed one with header info (and therefore remove all tags).
e.g. For a private repo in one of my orgs, this button links to https://huggingface.co/datasets/ORG/DATASET/new/main/?filename=README.md
even though the file already exists.
Describe the solution you’d like Have the button check if there is a README.md file and open that for editing instead of overwriting with an empty one.
Describe alternatives you’ve considered N/A
Additional context This happened with a private repo; not sure this detail matters.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top GitHub Comments
(i think i broke this, btw 😅)
Closing this since we deployed a fix server-side, thanks @cakiki! Feel free to reopen if needed.