Skip to content

Commit

Permalink
Replace model repo with repo in docstrings (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova authored Dec 18, 2024
1 parent c4e6079 commit 6c83188
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2919,7 +2919,7 @@ def list_repo_files(
repo_id (`str`):
A namespace (user or an organization) and a repo name separated by a `/`.
revision (`str`, *optional*):
The revision of the model repository from which to get the information.
The revision of the repository from which to get the information.
repo_type (`str`, *optional*):
Set to `"dataset"` or `"space"` if uploading to a dataset or space, `None` or `"model"` if uploading to
a model. Default is `None`.
Expand Down Expand Up @@ -3610,7 +3610,7 @@ def update_repo_visibility(
repo_id (`str`, *optional*):
A namespace (user or an organization) and a repo name separated by a `/`.
private (`bool`, *optional*, defaults to `False`):
Whether the model repo should be private.
Whether the repository should be private.
token (Union[bool, str, None], optional):
A valid user access token (string). Defaults to the locally saved
token, which is the recommended method for authentication (see
Expand Down Expand Up @@ -3672,7 +3672,7 @@ def update_repo_settings(
* "manual": The repository is gated, and access requests require manual approval.
* False : The repository is not gated, and anyone can access it.
private (`bool`, *optional*):
Whether the model repo should be private.
Whether the repository should be private.
token (`Union[str, bool, None]`, *optional*):
A valid user access token (string). Defaults to the locally saved token,
which is the recommended method for authentication (see
Expand Down Expand Up @@ -5194,7 +5194,7 @@ def hf_hub_download(
filename (`str`):
The name of the file in the repo.
subfolder (`str`, *optional*):
An optional value corresponding to a folder inside the model repo.
An optional value corresponding to a folder inside the repository.
repo_type (`str`, *optional*):
Set to `"dataset"` or `"space"` if downloading from a dataset or space,
`None` or `"model"` if downloading from a model. Default is `None`.
Expand Down

0 comments on commit 6c83188

Please sign in to comment.