Spaces:
Paused
Paused
Update controllers/health_controller.py
Browse files
controllers/health_controller.py
CHANGED
|
@@ -1,13 +1,7 @@
|
|
| 1 |
-
from fastapi import APIRouter
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
return {"status": "ok"}
|
| 9 |
-
|
| 10 |
-
@router.get("/health/intents")
|
| 11 |
-
def health_intents():
|
| 12 |
-
loaded_projects = [proj for proj, model in llm_models.items() if model.intent_model is not None]
|
| 13 |
-
return {"status": "ok", "loaded_projects": loaded_projects}
|
|
|
|
| 1 |
+
from fastapi import APIRouter
|
| 2 |
+
|
| 3 |
+
router = APIRouter()
|
| 4 |
+
|
| 5 |
+
@router.get("/")
|
| 6 |
+
def health():
|
| 7 |
+
return {"status": "ok"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|