v0.0.18: Repo metadata, git tags, Keras mixin
v0.0.18: Repo metadata, git tags, Keras mixin
Repository metadata (@julien-c)
The version v0.0.18 of the huggingface_hub
includes tools to manage repository metadata. The following example reads metadata from a repository:
from huggingface_hub import Repository
repo = Repository("xxx", clone_from="yyy")
data = repo.repocard_metadata_load()
The following example completes that metadata before writing it to the repository locally.
data["license"] = "apache-2.0"
repo.repocard_metadata_save(data)
Git tags (@AngledLuffa)
Tag management is now available! Add, check, delete tags locally or remotely directly from the Repository
utility.
- Tags #323 (@AngledLuffa)
Revisited Keras support (@nateraw)
The Keras mixin has been revisited:
- It now saves models as
SavedModel
objects rather than.h5
files. - It now offers methods that can be leveraged simply as a functional API, instead of having to use the Mixin as an actual mixin.