nateraw / modelcards

📝 Utility to create, edit, and publish model cards on the Hugging Face Hub. [**Now lives in huggingface_hub**]
MIT License
15 stars 4 forks source link

Use CardData directly in ModelCard.from_template #25

Closed nateraw closed 2 years ago

nateraw commented 2 years ago

Resolves #19 and #22

Now we'll use CardData directly when calling ModelCard.from_template instead of passing the kwargs through from_template to create CardData within.

This is nice because now we can add arbitrary data to CardData if you want, separately, as well as include template kwargs. That way there's no confusion as to which is which.

Since this is a fairly major breaking API change, I'll be upping the version and creating a release for 0.1.0 after this is merged.