Spaces:
Paused
Paused
Download agent_zero_framework/python/api/restart.py from Oldmangrizzz/Agent-Node: direct link, hf CLI and curl.
- Browser
- Download file 264 Bytes
-
https://huggingface.co/spaces/Oldmangrizzz/Agent-Node/resolve/main/agent_zero_framework/python/api/restart.py
- Command line
-
hf download hf://spaces/Oldmangrizzz/Agent-Node/agent_zero_framework/python/api/restart.py
-
curl -L -o restart.py https://huggingface.co/spaces/Oldmangrizzz/Agent-Node/resolve/main/agent_zero_framework/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) |