Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚚 Proposal:
use_auth_token
for read only HfApi
methods
This PR deprecates the `token` argument in read-only methods of `HfApi` in favor of `use_auth_token`. `use_auth_token` is more flexible as it allows not passing a token, whereas `token=None` fetches the token from `HfFolder`. I personally prefer the semantics of `use_auth_token`, that I find very legible: - `use_auth_token=False` - `use_auth_token="token"` - `use_auth_token=True` cc @lhoestq
- Loading branch information