Download app/api/health.py from gitdeem/mp4: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/spaces/gitdeem/mp4/resolve/main/app/api/health.py
- Command line
-
hf download hf://spaces/gitdeem/mp4/app/api/health.py
-
curl -L -o health.py https://huggingface.co/spaces/gitdeem/mp4/resolve/main/app/api/health.py
565 Bytes
| from fastapi import APIRouter, status | |
| from app.schemas.health import HealthResponse | |
| from app.services.health import health_service | |
| router = APIRouter() | |
| async def health_check(): | |
| """ | |
| 健康检查接口 | |
| 返回: | |
| - status: 整体状态 (healthy/degraded) | |
| - version: 应用版本 | |
| """ | |
| return await health_service.check_health() | |