(Best) Way to add dataset card from Python (push_to_hub)

Hi,

Congrats on all the achievements with the library and the datasets ecosystem.

Working on using the Hub for sharing and versioning datasets for our open-source data labeling tool, I was wondering what’s the best way to “programmatically” add a Dataset Card when/after using the my_dataset.push_to_hub()? I promise I’ve been searching through the documentation. If there’s not currently a way with datasets maybe one could use the huggingface_hub directly? Any pointer to start looking at would be really helpful!

Hi, thanks! Yes, you can use huggingface_hub.upload_file for that.

1 Like

Thanks, Mario, we’ll try that!