Update stroke-flask-docker/README.md
Browse files- stroke-flask-docker/README.md +18 -26
stroke-flask-docker/README.md
CHANGED
|
@@ -1,26 +1,18 @@
|
|
| 1 |
-
# Stroke Predictor - Flask + Docker
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
##
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
docker run -p 8080:8080 stroke-app:latest
|
| 20 |
-
|
| 21 |
-
## Endpoints
|
| 22 |
-
GET / # form UI
|
| 23 |
-
POST /predict # JSON: returns stroke_probability and predicted_label
|
| 24 |
-
GET /health # healthcheck
|
| 25 |
-
|
| 26 |
-
Model file: model/stroke_pipeline.joblib
|
|
|
|
| 1 |
+
# Stroke Predictor - Flask + Docker
|
| 2 |
+
|
| 3 |
+
A minimal Flask app that serves a stroke risk model with a web form and a JSON API.
|
| 4 |
+
|
| 5 |
+
## Local run
|
| 6 |
+
pip install -r requirements.txt
|
| 7 |
+
python app.py # http://127.0.0.1:8080
|
| 8 |
+
|
| 9 |
+
## Docker
|
| 10 |
+
docker build -t stroke-app:latest .
|
| 11 |
+
docker run -p 8080:8080 stroke-app:latest
|
| 12 |
+
|
| 13 |
+
## Endpoints
|
| 14 |
+
GET / # form UI
|
| 15 |
+
POST /predict # JSON: returns stroke_probability and predicted_label
|
| 16 |
+
GET /health # healthcheck
|
| 17 |
+
|
| 18 |
+
Model file: model/stroke_pipeline.joblib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|