Closed nateraw closed 2 years ago
This PR resolves #2 by adding a call to the Hugging Face API to validate card metadata before pushing to the hub. Since it requires the internet, we only call it when pushing to hub, as we can assume the user has access to the internet.
Note that the hub will reject a push with an invalid model card only if the model card is changed during the push.
So, a user can have an invalid card already and push other files without issues.
This PR resolves #2 by adding a call to the Hugging Face API to validate card metadata before pushing to the hub. Since it requires the internet, we only call it when pushing to hub, as we can assume the user has access to the internet.