# Define card metadata
card_data = ModelCardData(language='en', license='mit', library_name='keras')

# Create card from template, passing it any jinja template variables you want.
# In our case, we'll pass author
card = ModelCard.from_template(card_data, template_path='custom_template.md', author='nateraw')
card.save('my_model_card_1.md')
print(card)
```  
The resulting card's markdown looks like this:  
```
---
language: en
license: mit
library_name: keras
---

# Model Card for MyCoolModel