From e1dcd8c77ba1723fb27085d93631b9a512ed5c05 Mon Sep 17 00:00:00 2001 From: meg <90473723+meg-huggingface@users.noreply.github.com> Date: Wed, 7 Dec 2022 15:25:40 -0800 Subject: [PATCH] Adding "summary" variables Proposes 2 new jinja variables that have been in other cards but were not yet transferred here: model_summary , the short description of the model that follows the name. results_summary , the tl;dr of what the results say. --- src/huggingface_hub/templates/modelcard_template.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/huggingface_hub/templates/modelcard_template.md b/src/huggingface_hub/templates/modelcard_template.md index d19b0d64ca..d3fb85c7f7 100644 --- a/src/huggingface_hub/templates/modelcard_template.md +++ b/src/huggingface_hub/templates/modelcard_template.md @@ -7,6 +7,8 @@ +{{ model_summary | default("", true) }} + # Table of Contents 1. [Model Details](#model-details) @@ -132,6 +134,10 @@ {{ results | default("[More Information Needed]", true)}} +### Summary + +{{ results_summary | default("", true) }} + # Model Examination [optional]