HfHub.Users.Organization (HfHub v0.2.0)

Copy Markdown View Source

Represents a HuggingFace Hub organization profile.

Summary

Functions

Creates an Organization struct from an API response map.

Types

t()

@type t() :: %HfHub.Users.Organization{
  avatar_url: String.t() | nil,
  details: String.t() | nil,
  fullname: String.t() | nil,
  name: String.t(),
  num_datasets: non_neg_integer(),
  num_members: non_neg_integer(),
  num_models: non_neg_integer(),
  num_spaces: non_neg_integer()
}

Functions

from_response(response)

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

Creates an Organization struct from an API response map.