Skip to content

v0.19.1 - Hot-fix: ignore TypeError when listing models with corrupted ModelCard

Compare
Choose a tag to compare
@Wauplin Wauplin released this 13 Nov 16:06
· 456 commits to main since this release

Full Changelog: v0.19.0...v0.19.1.

Fixes a regression bug (PR #1821) introduced in 0.19.0 that made looping over models with list_models fail. The problem came from the fact that we are now parsing the data returned by the server into Python objects. However for some models the metadata in the model card is not valid. This is usually checked by the server but some models created before we started to enforce correct metadata are not valid. This hot-fix fixes the issue by ignoring the corrupted data, if any.