HfHub.Spaces.SpaceRuntime (HfHub v0.2.0)

Copy Markdown View Source

Runtime information for a HuggingFace Space.

Summary

Functions

Create a SpaceRuntime struct from an API response.

Types

stage()

@type stage() ::
  :building
  | :running
  | :paused
  | :sleeping
  | :stopped
  | :runtime_error
  | :no_app_file

t()

@type t() :: %HfHub.Spaces.SpaceRuntime{
  hardware: String.t() | nil,
  raw_logs: boolean() | nil,
  requested_hardware: String.t() | nil,
  sdk: String.t() | nil,
  sdk_version: String.t() | nil,
  sleep_time: integer() | nil,
  stage: stage() | nil,
  storage: String.t() | nil
}

Functions

from_response(response)

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

Create a SpaceRuntime struct from an API response.