File: space_runtime.md

package info (click to toggle)
huggingface-hub 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,424 kB
  • sloc: python: 45,857; sh: 434; makefile: 33
file content (35 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!--⚠️ Note that this file is in Markdown but contains specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.
-->

# Managing your Space runtime

Check the [`HfApi`] documentation page for the reference of methods to manage your Space on the Hub.

- Duplicate a Space: [`duplicate_space`]
- Fetch current runtime: [`get_space_runtime`]
- Manage secrets: [`add_space_secret`] and [`delete_space_secret`]
- Manage hardware: [`request_space_hardware`]
- Manage state: [`pause_space`], [`restart_space`], [`set_space_sleep_time`]

## Data structures

### SpaceRuntime

[[autodoc]] SpaceRuntime

### SpaceHardware

[[autodoc]] SpaceHardware

### SpaceStage

[[autodoc]] SpaceStage

### SpaceStorage

[[autodoc]] SpaceStorage

### SpaceVariable

[[autodoc]] SpaceVariable