Tree-Diagram's picture
Update README.md
431e65c verified
|
Raw History Blame Contribute Delete
564 Bytes
---
title: AgroShield Diagnosis API
emoji: 🌱
colorFrom: green
colorTo: blue
sdk: gradio
app_file: app.py
pinned: false
---
# AgroShield Diagnosis API
A Gradio Space that also exposes a plain JSON API, so it can be called
from the AgroShield Vercel backend as well as tested by hand.
## Endpoints
- `/` — a small manual-test UI (type a symptom description, see the
predicted label).
- `GET /health` — health check, confirms the model loaded.
- `POST /predict` — body `{"text": "<symptom description>"}`, returns
`{"label": "<predicted disease>"}`.