-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH Add update metadata to repocard (#844)
* add `metadata_update` function * add tests * add docstring * Apply suggestions from code review Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com> * refactore `_update_metadata_model_index` * Apply suggestions from code review Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com> * fix style and imports * switch to deepcopy everywhere * load repo in repocard test into tmp folder * simplify results and metrics checks when updating metadata * run black * Apply suggestions from code review Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> * fix pyyaml version to work with `sort_keys` kwarg * don't allow empty commits if file hasn't changed * switch order of updates to first check model-index for easier readbility * expose repocard functions through `__init__` * fix init * make style & quality * revert to for-loop * Apply suggestions from code review Co-authored-by: Julien Chaumond <julien@huggingface.co> Co-authored-by: Lysandre Debut <lysandre.debut@reseau.eseo.fr> * post suggestion fixes * add example * add type to list Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com> Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> Co-authored-by: Julien Chaumond <julien@huggingface.co> Co-authored-by: Lysandre Debut <lysandre.debut@reseau.eseo.fr>
- Loading branch information
1 parent
da25c67
commit f6343cb
Showing
4 changed files
with
361 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.