agent-zero-ai / python /api /restart.py
Tsitsi19's picture
Upload folder using huggingface_hub
8d1819a verified
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)