huggingface_hub
75a1ba50 - Add additional repo card utils from `modelcards` repo (#940)

Commit
3 years ago
Add additional repo card utils from `modelcards` repo (#940) * :construction: wip - add modelcard utils * :construction: use original regex, fix metadata update * :fire: remove identical_ok kwarg * :white_check_mark: add repocard_data tests * :construction: wip - add default modelcard template * :white_check_mark: Add modelcard tests * :construction: wip - add back repo_type * :memo: update modelcard template * [#940] Preserve newlines in existing card files (#949) * Preserve newlines in the existing card files * make style * :white_check_mark: add test * :lipstick: apply style Co-authored-by: nateraw <nxr9266@g.rit.edu> * [#940] Better inheritance for repo card utils (#956) * :construction: wip * :construction: wip * :construction: wip * :lipstick: apply style * :construction: wip * :lipstick: style * :heavy_plus_sign: add jinja dep to setup.py testing extras * :fire: remove unnecessary jinja import * :bulb: fix regex comment * :art: reformatting * :memo: fix doctests even though we aren't running them * :memo: fix doctests even though we aren't using them * :white_check_mark: update tests * :memo: add some docs * :white_check_mark: fix flake8 on logging * :memo: update docstrings to use python code blocks * :memo: add a docs page * :memo: add api docs * :memo: update repocard package reference in docs * :memo: update ref to CardData in docs * :memo: update docs * :memo: update docs * :memo: update docs * :memo: docs * :memo: update model cards guide * :memo: update cards reference docs * :memo: add note that local filepaths dont use repo_type * :memo: update docstrings * :memo: update docstrings * :white_check_mark: add some dataset card/data tests * :memo: update docstrings and dataset card template * :lipstick: style * :memo: add evalresult docstring * :memo: update some docstrings * :memo: fix link * :art: use defaultdict instead of dict * :memo: update model cards guide * :memo: update model cards guide * :lipstick: style * :memo: update ref docs * :white_check_mark: update tests * :white_check_mark: update tests * :memo: add docstring for repocard, update guide * Apply suggestions from code review Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> Co-authored-by: Lucain <lucainp@gmail.com> * Apply suggestions from code review Co-authored-by: Lucain <lucainp@gmail.com> Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> * :heavy_minus_sign: remove Jinja2 from install_requires * :truck: use internal testing repo for docstring example * :art: kwargs only for ModelCardData/DatasetCardData * :goal_net: rename caught error to ValueError * :white_check_mark: fix tests * Update src/huggingface_hub/repocard.py Co-authored-by: Lucain <lucainp@gmail.com> * :lipstick: style * :memo: add typehints to repocard.py * :memo: update model cards docs * :memo: add docstring for _detect_line_ending helper fn * Apply suggestions from code review * Update src/huggingface_hub/repocard_data.py * Update src/huggingface_hub/repocard_data.py Co-authored-by: Julien Chaumond <julien@huggingface.co> Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> Co-authored-by: Lucain <lucainp@gmail.com>
Author
Parents
Loading