Spaces:
Runtime error
Runtime error
Download pause_space.py from AIEnergyScore/launch-computation-example: direct link, hf CLI and curl.
- Browser
- Download file 161 Bytes
-
https://huggingface.co/spaces/AIEnergyScore/launch-computation-example/resolve/main/pause_space.py
- Command line
-
hf download hf://spaces/AIEnergyScore/launch-computation-example/pause_space.py
-
curl -L -o pause_space.py https://huggingface.co/spaces/AIEnergyScore/launch-computation-example/resolve/main/pause_space.py
161 Bytes
| from huggingface_hub import HfApi | |
| import os | |
| TOKEN = os.environ.get("DEBUG") | |
| API = HfApi(token=TOKEN) | |
| API.pause_space("AIEnergyScore/launch-computation-example") |