Skip to content
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

Feature Request: Have programatic way of adding metadata to a repo #54

Closed
osanseviero opened this issue May 26, 2021 · 2 comments · Fixed by #339
Closed

Feature Request: Have programatic way of adding metadata to a repo #54

osanseviero opened this issue May 26, 2021 · 2 comments · Fixed by #339

Comments

@osanseviero
Copy link
Contributor

If a user creates dozens of repos programmatically, and then realized they forgot adding some tag or any other info for the metadata, they will have to either go through each of them manually, re-generate the README.md, or change the README.md content manually which can be error-prone.

@julien-c
Copy link
Member

I think the way to do this is to provide helper to update one model card locally (for instance via exposing only updating the metadata), then use the regular git-wrapping upload methods to push.

@julien-c
Copy link
Member

For instance we might have a repo_load_metadata helper that:

  • opens the README.md file inside a repo
  • gets just the yaml block
  • parse it through yaml.load
  • gives you a dict

and a repo_save_metadata that does the same things in reverse :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants