KhushbakhtXS/medgemma-pathology-api
0
MedGemma Pathology API
A FastAPI backend serving a fine-tuned MedGemma model for H&E stained colorectal histopathology tissue classification.
Model
- Base model:
google/medgemma-1.5-4b-it - LoRA adapter:
KhushbakhtXS/medgemma-pathology-lora
Tissue Classes
Endpoints
POST /classify
Form fields:
file(required) — image file (JPEG / PNG)clinical_notes(optional) — free-text clinical context
Response:
{
"tissue_type": "TUM",
"confidence": "high",
"reasoning": "Irregular glandular structures with nuclear pleomorphism.",
"guidance": "Tumor epithelium identified. Correlate with grade and staging workup.",
"urgent": true,
"raw_output": "..."
}Configuration
Set the HF_TOKEN Space secret to a Hugging Face token with read access to the gated MedGemma model.
