[Dataset | Model card] When pushing to template repos, work on actual raw contents (#1282)
* dataset card: add comment linking to ref for the metadata part
(maybe a better webpage could be written about this, @lhoestq )
* generate templates: Bypass `ModelCard` and compare actual strings
* Forward compatibility with @lhoestq's PR
ref: https://github.com/huggingface/hub-docs/pull/595
* Also do it for dataset cards
cc @lhoestq
* add model_summary
* new flake8 rule to ignore
Co-authored-by: Lucain <lucainp@gmail.com>