Hub Python Library documentation

コレクションの管理

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v2.4.0).
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

コレクションの管理

Hub上のSpaceを管理するためのメソッドの参考として、HfApiのドキュメントページをご覧ください。

コレクション

class huggingface_hub.Collection

< >

( **kwargs )

パラメータ

  • slug (str) — コレクションのスラッグ。例: "TheBloke/recent-models-64f9a55bb3115b4f513ec026"。
  • title (str) — コレクションのタイトル。例: "Recent models"。
  • owner (str) — コレクションのオーナー。例: "TheBloke"。
  • items (list[CollectionItem]) — コレクション内のアイテムのリスト。
  • last_updated (datetime) — コレクションの最終更新日付です。
  • position (int) — オーナーのコレクション一覧における、そのコレクションの位置。
  • private (bool) — コレクションがプライベートかどうかを示します。
  • theme (str) — コレクションのテーマ。例: "green"。
  • upvotes (int) — コレクションのアップボートの数。
  • description (str, 省略可) — コレクションの説明をプレーンテキストとして指定します。
  • url (str) — プロパティ。Hub 上のコレクションの URL です。

Hub上のコレクションに関する情報を含みます。

CollectionItem

class huggingface_hub.CollectionItem

< >

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

パラメータ

  • item_object_id (str) — コレクション内のアイテムの一意なID。
  • item_id (str) — Hub 上の基盤オブジェクトの ID。repo_id、論文 ID、コレクションのスラッグ、またはバケット ID のいずれかです。 例: "jbilcke-hf/ai-comic-factory"、"2307.09288"、"celinah/cerebras-function-calling-682607169c35fbfa98b30b9a"。
  • item_type (str) — 基盤となるオブジェクトの型。"model"、"dataset"、"space"、"paper"、"collection"、または"bucket"のいずれかです。
  • position (int) — コレクション内のアイテムの位置。
  • note (str, 任意) — アイテムに関連付けられた注釈。プレーンテキストとして指定します。

Collection(モデル、データセット、Space、論文、コレクション、またはバケット)のアイテムに関する情報を含みます。

Update on GitHub