Spaces:
Sleeping
Sleeping
Clement Vachet
commited on
Commit
·
09fc993
1
Parent(s):
779d080
Update name of docker image
Browse files
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# IRIS classification task with AWS Lambda
|
2 |
|
3 |
-
|
4 |
|
5 |
### Training the model:
|
6 |
|
@@ -10,22 +10,23 @@ bash
|
|
10 |
### Building the docker image:
|
11 |
|
12 |
bash
|
13 |
-
> docker build -t iris-lambda .
|
14 |
|
15 |
### Running the docker container locally:
|
16 |
|
17 |
bash
|
18 |
|
19 |
-
> docker run --name iris-lambda-cont -p 8080:8080 iris-lambda
|
20 |
|
21 |
|
22 |
### Testing locally:
|
23 |
|
24 |
-
|
25 |
|
26 |
bash
|
27 |
> curl -X POST "http://localhost:8080/2015-03-31/functions/function/invocations" -d '{"body": "{\"features\": [[6.5, 3.0, 5.8, 2.2], [6.1, 2.8, 4.7, 1.2]]}"}'
|
28 |
|
|
|
29 |
### Deployment to AWS
|
30 |
|
31 |
Steps:
|
|
|
1 |
# IRIS classification task with AWS Lambda
|
2 |
|
3 |
+
Workflow: use of AWS lambda function for deployment
|
4 |
|
5 |
### Training the model:
|
6 |
|
|
|
10 |
### Building the docker image:
|
11 |
|
12 |
bash
|
13 |
+
> docker build -t iris-classification-lambda .
|
14 |
|
15 |
### Running the docker container locally:
|
16 |
|
17 |
bash
|
18 |
|
19 |
+
> docker run --name iris-classification-lambda-cont -p 8080:8080 iris-classification-lambda
|
20 |
|
21 |
|
22 |
### Testing locally:
|
23 |
|
24 |
+
Example of a prediction request via curl command
|
25 |
|
26 |
bash
|
27 |
> curl -X POST "http://localhost:8080/2015-03-31/functions/function/invocations" -d '{"body": "{\"features\": [[6.5, 3.0, 5.8, 2.2], [6.1, 2.8, 4.7, 1.2]]}"}'
|
28 |
|
29 |
+
|
30 |
### Deployment to AWS
|
31 |
|
32 |
Steps:
|