WissMah commited on
Commit
89a6200
Β·
verified Β·
1 Parent(s): e0a8630

Update stroke-flask-docker/README.md

Browse files
Files changed (1) hide show
  1. stroke-flask-docker/README.md +18 -26
stroke-flask-docker/README.md CHANGED
@@ -1,26 +1,18 @@
1
- # Stroke Predictor - Flask + Docker
2
- ---
3
- title: Stroke Risk Predictor
4
- emoji: πŸ’“
5
- colorFrom: indigo
6
- colorTo: purple
7
- sdk: docker
8
- pinned: false
9
- license: mit
10
- ---
11
- A minimal Flask app that serves a stroke risk model with a web form and a JSON API.
12
-
13
- ## Local run
14
- pip install -r requirements.txt
15
- python app.py # http://127.0.0.1:8080
16
-
17
- ## Docker
18
- docker build -t stroke-app:latest .
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