Spaces:
Sleeping
Sleeping
Upload app/routers/health.py with huggingface_hub
Browse files- app/routers/health.py +4 -3
app/routers/health.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
from fastapi import APIRouter
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
@router.get("/health")
|
| 7 |
async def health_check():
|
| 8 |
-
"""Health check для HuggingFace Spaces"""
|
| 9 |
return {
|
| 10 |
"status": "healthy",
|
| 11 |
-
"
|
| 12 |
}
|
|
|
|
| 1 |
from fastapi import APIRouter
|
| 2 |
|
| 3 |
+
from app.services.transcription import transcription_service
|
| 4 |
+
|
| 5 |
+
router = APIRouter()
|
| 6 |
|
| 7 |
|
| 8 |
@router.get("/health")
|
| 9 |
async def health_check():
|
|
|
|
| 10 |
return {
|
| 11 |
"status": "healthy",
|
| 12 |
+
"whisper_loaded": transcription_service.is_loaded,
|
| 13 |
}
|