HfHub.Collections.Collection (HfHub v0.2.0)

Copy Markdown View Source

Represents a collection on HuggingFace Hub.

Collections enable organizing and curating lists of models, datasets, and spaces.

Summary

Functions

Creates a Collection from API response.

Types

t()

@type t() :: %HfHub.Collections.Collection{
  created_at: DateTime.t() | nil,
  description: String.t() | nil,
  items: [HfHub.Collections.CollectionItem.t()],
  owner: String.t(),
  position: non_neg_integer() | nil,
  private: boolean(),
  slug: String.t(),
  theme: String.t() | nil,
  title: String.t(),
  updated_at: DateTime.t() | nil,
  upvotes: non_neg_integer()
}

Functions

from_response(response)

@spec from_response(map()) :: t()

Creates a Collection from API response.