alexorlov commited on
Commit
5b9b9da
·
verified ·
1 Parent(s): e3f5a1a

Upload app/routers/health.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app/routers/health.py +4 -3
app/routers/health.py CHANGED
@@ -1,12 +1,13 @@
1
  from fastapi import APIRouter
2
 
3
- router = APIRouter(tags=["health"])
 
 
4
 
5
 
6
  @router.get("/health")
7
  async def health_check():
8
- """Health check для HuggingFace Spaces"""
9
  return {
10
  "status": "healthy",
11
- "service": "checklist-agent"
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
  }