bhumika-tewari-282006/cabbageguard-backend
CabbageGuard AI — Backend (Hugging Face Space)
This Space runs the real CabbageGuard AI FastAPI backend for the eight-class CabbageGuard model (auth, /predict, /gradcam, /history, /analytics, /diseases, /feedback, /admin) as a standing CPU Docker service. It is synced automatically from the GitHub repo main branch by .github/workflows/hf_sync.yml on every push that touches backend/ or training/knowledge_base/ — do not edit files in this Space directly, they will be overwritten on the next sync.
Required Space secrets (Settings → Variables and secrets)
Non-secret Space variables
The classifier output order is alternaria_leaf_spot, bacterial_leaf_spot, black_rot, clubroot, downy_mildew, grey_mould, healthy, ringspot; the Space must use the matching private Hugging Face repository and HF_READ_TOKEN. The severity repository outputs the four tiers healthy, mild, moderate, severe and is marked pseudo_supervised because its labels are deterministic weak pseudo-labels rather than expert annotations. Clubroot remains not_applicable for leaf-only inference.
Health check
GET /health → {"status": "ok", ...}
