--- 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": ""}`, returns `{"label": ""}`.