Thiratpy/hemoscan-inference-api
0
HemoScan Inference API
FastAPI service used by the HemoScan Next.js app for blood-smear image analysis:
- Anemia classification
- RBC morphology (9-class)
- Leukemia (C-NMC ALL) detection — soft-voting ensemble of 3 CNNs (EfficientNetV2-S, ConvNeXt-Tiny, DenseNet121). Binary detection only (Hem/normal vs ALL/malignant) — not a leukemia subtype classifier. Research / educational demo, not a medical device.
Endpoints
GET /health— status + loaded model infoPOST /predict— body{"image": "<data-url base64>"}→ combined prediction JSON
Local dev
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 7860 --reloadThis Space is built from the python-api/ directory of the HemoScan repo. The 3 leukemia ensemble weight files are tracked with Git LFS (see .gitattributes).
