-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push empty model card and dataset card to the Hub #1261
Conversation
The documentation is not available anymore as the PR was closed or merged. |
it's irrelevant but, I was wondering if it would be useful to eventually automatically create these when user pushes model/dataset programmatically through |
As discussed in DM, I find using a token for the |
https://github.com/huggingface/moon-landing/pull/4815 (internal) though should help significantly here as the UI will allow people to pick templates. |
Thanks for the feedback @osanseviero ! I created a new user huggingface-hub-ci for which I created a write token. This token is set as environment variable in the github CI. Worse case scenario, someone successfully leaked it and has write access to Examples are now in https://huggingface.co/templates/model-card-example and https://huggingface.co/datasets/templates/dataset-card-example. I also changed the script to exit with nice message if the logged in user doesn't have the correct access. |
Thanks @Wauplin! i will use this in my internal PR |
BTW i would once again advocate to remove the table of content from the templates, as the website UI includes a table of content automatically anyways But i'll open another issue |
(cc @meg-huggingface for this ^) |
@julien-c @osanseviero mind approving the PR so that I merge it ? Since you both kinda reviewed already :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny nit, would you mind removing the table of contents from the templates too (on the fly)?
Did it. It will be a good occasion to check CI works fine to push updated versions :) |
Related to https://github.com/huggingface/moon-landing/pull/4815 (private link).
Goal is to keep up-to-date an empty example of ModelCard and DatasetCard, generated by
huggingface_hub
. These examples will be referenced from Hub or from docs.Cards are pushed to: