v1.11.0
📦 huggingface-hubView on GitHub →
✨ 5 features🐛 5 fixes⚡ 1 deprecations🔧 18 symbols
Summary
This release introduces powerful semantic search for Spaces and enables programmatic access to Space logs. It also significantly enhances the CLI by standardizing output formats and adding volume management commands.
Migration Steps
- When using `list_models`, replace usage of the `model_name` argument with the `search` argument (e.g., change `list_models(model_name="gemma")` to `list_models(search="gemma")`).
- In the CLI, replace old `--quiet` flags on migrated commands with `--format quiet`.
- For confirmation prompts in the CLI (e.g., `hf cache rm`), use the `--yes` flag instead of relying on interactive prompts when running in agent/json/quiet modes.
✨ New Features
- Introduced semantic search for Hugging Face Spaces via the new `search_spaces()` API and `hf spaces search` CLI command.
- Added programmatic access to Space logs using the new `fetch_space_logs` function, supporting run logs, build logs, and real-time streaming.
- Added CLI equivalent for fetching Space logs: `hf spaces logs`.
- Introduced `hf spaces volumes` command group for managing Space mounted volumes (list, set, delete) from the CLI.
- Added `hf auth token` CLI command to print the current authentication token to stdout.
🐛 Bug Fixes
- Fixed an issue with copying files to a folder.
- Matched Unix `cp -r` nesting semantics in `copy_files`.
- Ignored `.gitattributes` when copying repository files to a bucket.
- Fixed a reference cycle in `hf_raise_for_status` that caused delayed object destruction.
- Fixed `repo delete` tests by ensuring the `--yes` flag was present where required.
Affected Symbols
⚡ Deprecations
- The `model_name` argument in `list_models` is deprecated and will be removed in v2.0. Use the `search` argument instead.