v0.0.9: HTTP file uploads, multiple filter model selection
Support for large file uploads
Implementation of an endpoint to programmatically upload (large) files to any repo on the hub, without the need for git, using HTTP POST requests.
- [API] Support for the file upload endpoint #42 (@SBrandeis)
The HfApi.model_list
method now allows multiple filters
Models may now be filtered using several filters:
Example usage:
>>> from huggingface_hub import HfApi
>>> api = HfApi()
>>> # List all models
>>> api.list_models()
>>> # List only the text classification models
>>> api.list_models(filter="text-classification")
>>> # List only the russian models compatible with pytorch
>>> api.list_models(filter=("ru", "pytorch"))
>>> # List only the models trained on the "common_voice" dataset
>>> api.list_models(filter="dataset:common_voice")
>>> # List only the models from the AllenNLP library
>>> api.list_models(filter="allennlp")
- Document the
filter
argument #41 (@LysandreJik)
ModelInfo
now has a readable representation
Improvement of the ModelInfo
class so that it displays information about the object.
- Include a readable repr for ModelInfo #32 (@muellerzr)
Improvements and bugfixes
- Fix conda by specifying python version + add tests to main branch #28 (@LysandreJik)
- Improve Mixin #34 (@LysandreJik)
- Enable
library_name
andlibrary_version
insnapshot_download
#38 (@LysandreJik) - [Windows support] Very long filenames #40 (@LysandreJik)
- Make error message more verbose when creating a repo #44 (@osanseviero)
- Open-source /docs #46 (@julien-c)