Clement Vachet commited on
Commit
8ed7e05
·
1 Parent(s): 70c8769

docs: use features as direct input

Browse files
Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -21,10 +21,13 @@ bash
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
 
21
 
22
  ### Testing locally:
23
 
24
+ Example of a prediction request
25
 
26
  bash
27
+ > curl -X POST "http://localhost:8080/2015-03-31/functions/function/invocations" -H "Content-Type: application/json" -d '{"features": [[6.5, 3.0, 5.8, 2.2], [6.1, 2.8, 4.7, 1.2]]}'
28
+
29
+ python
30
+ > python3 inference_api.py --url http://localhost:8080/2015-03-31/functions/function/invocations -d '{"features": [[6.5, 3.0, 5.8, 2.2], [6.1, 2.8, 4.7, 1.2]]}'
31
 
32
 
33
  ### Deployment to AWS