Hub Python Library documentation

Koleksiyonları yönetme

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Koleksiyonları yönetme

Hub'daki Space'inizi yönetmek için kullanılan yöntemlerin referansı için HfApi dokümantasyon sayfasına göz atın.

Koleksiyon

sınıf huggingface_hub.Collection

< >

( **kwargs )

Parametreler

  • slug (str) — Koleksiyonun slug değeri. Örn. "TheBloke/recent-models-64f9a55bb3115b4f513ec026".
  • title (str) — Koleksiyonun başlığı. Örn. "Recent models".
  • owner (str) — Koleksiyonun sahibi. Örn. "TheBloke".
  • items (list[CollectionItem]) — Koleksiyondaki öğelerin listesi.
  • last_updated (datetime) — Koleksiyonun son güncellenme tarihi.
  • position (int) — Sahibin koleksiyonları listesindeki koleksiyonun konumu.
  • private (bool) — Koleksiyonun özel olup olmadığı.
  • theme (str) — Koleksiyonun teması. Örn. "green".
  • upvotes (int) — Koleksiyonun olumlu oy sayısı.
  • description (str, isteğe bağlı) — Koleksiyonun düz metin olarak açıklaması.
  • url (str) — Hub'daki koleksiyonun (property) URL'si.

Hub'daki bir Koleksiyon hakkında bilgi içerir.

CollectionItem

sınıf huggingface_hub.CollectionItem

< >

( _id: strid: strtype: CollectionItemType_Tposition: intnote: dict | None = None**kwargs )

Parametreler

  • item_object_id (str) — Koleksiyondaki öğenin benzersiz kimliği.
  • item_id (str) — Hub'daki altta yatan nesnenin kimliği. repo_id, makale kimliği, koleksiyon slug'u veya bucket kimliği olabilir. Örn. "jbilcke-hf/ai-comic-factory", "2307.09288", "celinah/cerebras-function-calling-682607169c35fbfa98b30b9a".
  • item_type (str) — Altta yatan nesnenin türü. "model", "dataset", "space", "paper", "collection" veya "bucket" değerlerinden biri olabilir.
  • position (int) — Koleksiyondaki öğenin konumu.
  • note (str, isteğe bağlı) — Öğeyle ilişkili not, düz metin olarak.

Bir Koleksiyon öğesi (model, veri seti, Space, makale, koleksiyon veya bucket) hakkında bilgi içerir.

Update on GitHub