Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Sep 25, 2023
1 parent 89cef2a commit b12443b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/source/en/guides/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ In addition to these base attributes, returned items can have additional attribu

## Create a new collection

Now that we know how to get a [`Collection`], let's create our own! Use [`create_collection`] with a title and description.
Now that we know how to get a [`Collection`], let's create our own! Use [`create_collection`] with a title and description. To create a collection on an organization page, pass `namespace="my-cool-org"` when creating the collection. Finally, you can also create private collections by passing `private=True`.

```py
>>> from huggingface_hub import create_collection
Expand All @@ -86,8 +86,6 @@ It will return a [`Collection`] object with the high-level metadata (title, desc
"username"
```

To create a collection on an organization page, pass `namespace="my-cool-org"` when creating the collection. Finally, you can also create private collections by passing `private=True`.

## Manage items in a collection

Now that we have a [`Collection`], we want to add items to it and organize them.
Expand Down

0 comments on commit b12443b

Please sign in to comment.