We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fdbd93 commit ae0942dCopy full SHA for ae0942d
1 file changed
README.md
@@ -4,6 +4,20 @@ We trained a python model to classify whether or not a review is real or spam. N
4
5
The model is stored in model as ```model.pkl```.
6
7
+# Version 1.1 - Flask + gunicorn
8
+
9
+We can run flask using gunicorn and scale the number of workers.
10
11
+```bash
12
+gunicorn -w 3 -b :5000 api:app
13
+```
14
15
+## Benchmarks
16
17
+ab -n 10 -p data.json -T application/json 127.0.0.1:5000/predict
18
19
+~2.75 requests/s
20
21
# Version 1 - Flask
22
23
We can set up a flask server to serve the model.
@@ -26,9 +40,7 @@ How many predictions can our setup handle?
26
40
Using Apache Bench:
27
41
28
42
```bash
29
-ab -n 10 -p data.json \
30
--T application/json \
31
-127.0.0.1:5000/predict
43
32
44
```
33
45
34
46
0 commit comments