Spaces:
Sleeping
Sleeping
| from fastapi import APIRouter | |
| router = APIRouter() | |
| async def healthz(): | |
| """Checks if the service is running.""" | |
| return {"status": "ok"} | |
| async def readyz(): | |
| """Checks if the service is ready to accept traffic.""" | |
| # In a real app, this would check dependencies like model loading status. | |
| return {"ready": True} | |