You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a endpoint to check a given user/token has access to a repo: GET /api/{repo_type}s/{repo_id}/auth-check". It's especially useful to check permissions on a gated repo. Let's add a auth_check method to HfApi based on datasets implementation:
Related to huggingface/datasets#7110.
We have a endpoint to check a given user/token has access to a repo:
GET /api/{repo_type}s/{repo_id}/auth-check"
. It's especially useful to check permissions on a gated repo. Let's add aauth_check
method toHfApi
based ondatasets
implementation:If the user don't have access, a
RepoNotFound
orGatedRepoError
error should be raised.Need to add a proper docstring and tests as well.
The text was updated successfully, but these errors were encountered: