diff --git a/ai-medical/app.py b/ai-medical/app.py index 337f07d..9c2a9ef 100644 --- a/ai-medical/app.py +++ b/ai-medical/app.py @@ -227,4 +227,10 @@ async def spleen_segmentation(file: UploadFile = File(...)): "diagnosis": diagnosis, "splenomegaly_threshold_cm3": SPLENOMEGALY_THRESHOLD_CM3, "message": "Segmentation, volume calculation using resampled spacing, and splenomegaly analysis complete." - } \ No newline at end of file + } + +@app.get("/inference/spleen/health") +async def get_spleen_health(): + if model is None: + raise HTTPException(status_code=503, detail="Model not initialized") + return {"status": "Model Ready", "model_loaded": True} \ No newline at end of file