Huggingface.js documentation

Interface: SpaceRuntime

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: SpaceRuntime

Properties

errorMessage

Optional errorMessage: string

Defined in

hub/src/types/public.d.ts:54


gcTimeout

Optional gcTimeout: null | number

in seconds

Defined in

hub/src/types/public.d.ts:64


hardware

Optional hardware: Object

Type declaration

Name Type
current null | SpaceHardwareFlavor
currentPrettyName? string
requested null | SpaceHardwareFlavor
requestedPrettyName? string

Defined in

hub/src/types/public.d.ts:55


resources

Optional resources: SpaceResourceConfig

when calling /spaces, those props are only fetched if ?full=true

Defined in

hub/src/types/public.d.ts:62


sdk

Optional sdk: SpaceSdk

Defined in

hub/src/types/public.d.ts:52


sdkVersion

Optional sdkVersion: string

Defined in

hub/src/types/public.d.ts:53


stage

stage: SpaceStage

Defined in

hub/src/types/public.d.ts:51