|
Download README.md from Tree-Diagram/AgroShield-Diagnosis-API: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/spaces/Tree-Diagram/AgroShield-Diagnosis-API/resolve/main/README.md
- Command line
-
hf download hf://spaces/Tree-Diagram/AgroShield-Diagnosis-API/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Tree-Diagram/AgroShield-Diagnosis-API/resolve/main/README.md
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>"}`. | |