Check out the HfApi documentation page for the reference of methods to manage your Space on the Hub.
( **kwargs )
Parameters
str
) —
Slug of the collection. E.g. "TheBloke/recent-models-64f9a55bb3115b4f513ec026"
. str
) —
Title of the collection. E.g. "Recent models"
. str
) —
Owner of the collection. E.g. "TheBloke"
. List[CollectionItem]
) —
List of items in the collection. datetime
) —
Date of the last update of the collection. int
) —
Position of the collection in the list of collections of the owner. bool
) —
Whether the collection is private or not. str
) —
Theme of the collection. E.g. "green"
. int
) —
Number of upvotes of the collection. str
, optional) —
Description of the collection, as plain text. str
) —
(property) URL of the collection on the Hub. Contains information about a Collection on the Hub.
( _id: str id: str type: CollectionItemType_T position: int note: Optional[Dict] = None **kwargs )
Parameters
str
) —
Unique ID of the item in the collection. str
) —
ID of the underlying object on the Hub. Can be either a repo_id or a paper id
e.g. "jbilcke-hf/ai-comic-factory"
, "2307.09288"
. str
) —
Type of the underlying object. Can be one of "model"
, "dataset"
, "space"
or "paper"
. int
) —
Position of the item in the collection. str
, optional) —
Note associated with the item, as plain text. Contains information about an item of a Collection (model, dataset, Space or paper).