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

Deep copy card data when calling to_dict #23

Closed nateraw closed 2 years ago

nateraw commented 2 years ago

If we don't deep copy here, the reference we are using still mutates the original underlying class's attribute dict. This makes it so model-index becomes a key and card_data.eval_results gets removed.