Spaces:
Paused
Paused
Download python/api/restart.py from OnyxMunk/GravityFalls: direct link, hf CLI and curl.
- Browser
- Download file 264 Bytes
-
https://huggingface.co/spaces/OnyxMunk/GravityFalls/resolve/main/python/api/restart.py
- Command line
-
hf download hf://spaces/OnyxMunk/GravityFalls/python/api/restart.py
-
curl -L -o restart.py https://huggingface.co/spaces/OnyxMunk/GravityFalls/resolve/main/python/api/restart.py
264 Bytes
| from python.helpers.api import ApiHandler, Request, Response | |
| from python.helpers import process | |
| class Restart(ApiHandler): | |
| async def process(self, input: dict, request: Request) -> dict | Response: | |
| process.reload() | |
| return Response(status=200) |