WissMah commited on
Commit
3d39fdb
·
verified ·
1 Parent(s): 9c62902

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md CHANGED
@@ -4,4 +4,18 @@ sdk: docker
4
  license: mit
5
  ---
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
4
  license: mit
5
  ---
6
 
7
+ Stroke Predictor - Flask + Docker
8
+ A minimal Flask app that serves a stroke risk model with a web form and a JSON API.
9
+
10
+ Local run
11
+ pip install -r requirements.txt python app.py # http://127.0.0.1:8080
12
+
13
+ Docker
14
+ docker build -t stroke-app:latest . docker run -p 8080:8080 stroke-app:latest
15
+
16
+ Endpoints
17
+ GET / # form UI POST /predict # JSON: returns stroke_probability and predicted_label GET /health # healthcheck
18
+
19
+ Model file: model/stroke_pipeline.joblib
20
+
21
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference