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.ts:80


gcTimeout

Optional gcTimeout: null | number

in seconds

Defined in

hub/src/types/public.ts:90


hardware

Optional hardware: Object

Type declaration

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

Defined in

hub/src/types/public.ts:81


resources

Optional resources: SpaceResourceConfig

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

Defined in

hub/src/types/public.ts:88


sdk

Optional sdk: SpaceSdk

Defined in

hub/src/types/public.ts:78


sdkVersion

Optional sdkVersion: string

Defined in

hub/src/types/public.ts:79


stage

stage: SpaceStage

Defined in

hub/src/types/public.ts:77

< > Update on GitHub