--- title: AgriVision API emoji: 🚀 colorFrom: green colorTo: blue sdk: docker pinned: false --- # AgriVision API Crop disease and pest detection API powered by YOLOv8m trained on 29 classes. ## Endpoint ### `POST /predict` Send an image and receive: - Predicted disease or pest - Type (Disease / Pest / Healthy) - Confidence score - Severity level (High / Medium / Low / None) - Treatment recommendation - Top 3 predictions ### Example Response ```json { "prediction": "tomato_late_blight", "type": "Disease", "confidence": 0.9721, "severity": "High", "treatment": "Apply metalaxyl or cymoxanil fungicides immediately...", "top3": [...] } ``` --- title: Agrivision Api emoji: 📚 colorFrom: blue colorTo: purple sdk: docker pinned: false license: mit --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference