CoolFace
Apppublic

hiteshx33/plant-disease-service

sourceHugging Facemitupdated 7mo agoView on Hugging Face
0likes
App README

Plant Disease Detector

FastAPI service that detects plant/crop diseases from leaf images using the linkanjarad/mobilenet_v2_1.0_224-plant-disease-identification model.

Trained on the PlantVillage dataset — 38 classes covering diseases across tomato, potato, corn, grape, apple, cherry, peach, pepper, strawberry, and more.

API

POST /predict

json
{
  "image": "<base64-encoded leaf/plant image>"
}

Response:

json
{
  "diagnosis": "Tomato___Early_blight",
  "confidence": 0.9412,
  "predictions": [
    { "label": "Tomato___Early_blight", "score": 0.9412 },
    { "label": "Tomato___Late_blight", "score": 0.0321 },
    ...
  ],
  "model": "linkanjarad/mobilenet_v2_1.0_224-plant-disease-identification",
  "latency_ms": 156
}

GET /health

Returns service health status.

Environment Variables

VariableRequiredDescription
MODEL_IDNoModel ID (default: linkanjarad/mobilenet_v2_1.0_224-plant-disease-identification)

Part of Stoa — Decentralized AI Service Marketplace