feat: validate deployment secrets and update SSH action version

This commit is contained in:
Asep Haryana Saputra
2026-05-22 21:33:32 +00:00
parent 1978597bcf
commit 64d63587c7
3 changed files with 425 additions and 34 deletions
-33
View File
@@ -1,33 +0,0 @@
# ZeaVis ML Service
FastAPI service for serving corn leaf disease predictions from the trained Keras model.
## Setup
```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```
The default model path is `../../Machine_Learning/best_model/best_model.keras`. Override it with `MODEL_PATH` if needed.
## Run
```bash
uvicorn main:app --host 0.0.0.0 --port 8001
```
## Endpoints
- `GET /health` — service status and model loaded status.
- `GET /metadata` — service name, version, labels, input size, model path, and model loaded status.
- `POST /predict` — multipart image upload for disease classification.
## Verify
```bash
curl http://localhost:8001/health
curl http://localhost:8001/metadata
curl -X POST http://localhost:8001/predict -F "file=@/path/to/corn-leaf.jpg"
```