Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Sep 22, 2023
1 parent c80a606 commit 6cb84c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5815,6 +5815,7 @@ def get_collection(self, collection_slug: str, *, token: Optional[str] = None) -
Returns: [`Collection`]
Example:
```py
>>> from huggingface_hub import get_collection
>>> collection = get_collection("TheBloke/recent-models-64f9a55bb3115b4f513ec026")
Expand Down Expand Up @@ -5868,6 +5869,7 @@ def create_collection(
Returns: [`Collection`]
Example:
```py
>>> from huggingface_hub import create_collection
>>> collection = create_collection(
Expand Down Expand Up @@ -5937,6 +5939,7 @@ def update_collection_metadata(
Returns: [`Collection`]
Example:
```py
>>> from huggingface_hub import update_collection_metadata
>>> collection = update_collection_metadata(
Expand Down Expand Up @@ -5981,6 +5984,7 @@ def delete_collection(
Hugging Face token. Will default to the locally saved token if not provided.
Example:
```py
>>> from huggingface_hub import delete_collection
>>> collection = delete_collection("username/useless-collection-64f9a55bb3115b4f513ec026", missing_ok=True)
Expand Down Expand Up @@ -6033,6 +6037,8 @@ def add_collection_item(
Returns: [`Collection`]
Example:
```py
>>> from huggingface_hub import add_collection_item
>>> collection = add_collection_item(
Expand Down Expand Up @@ -6096,6 +6102,8 @@ def update_collection_item(
token (`str`, *optional*):
Hugging Face token. Will default to the locally saved token if not provided.
Example:
```py
>>> from huggingface_hub import get_collection, update_collection_item
Expand Down Expand Up @@ -6141,6 +6149,8 @@ def delete_collection_item(
token (`str`, *optional*):
Hugging Face token. Will default to the locally saved token if not provided.
Example:
```py
>>> from huggingface_hub import get_collection, delete_collection_item
Expand Down

0 comments on commit 6cb84c4

Please sign in to comment.