8
8
9
9
<!-- CORTEX_VERSION_MINOR -->
10
10
``` bash
11
- $ bash -c " $( curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.18/get-cli.sh) "
11
+ bash -c " $( curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.18/get-cli.sh) "
12
12
```
13
13
14
14
Continue to [ deploy an example] ( #deploy-an-example ) below.
@@ -26,41 +26,41 @@ To use GPU nodes, you may need to subscribe to the [EKS-optimized AMI with GPU S
26
26
<!-- CORTEX_VERSION_MINOR -->
27
27
``` bash
28
28
# install the CLI on your machine
29
- $ bash -c " $( curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.18/get-cli.sh) "
29
+ bash -c " $( curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.18/get-cli.sh) "
30
30
31
31
# provision infrastructure on AWS and spin up a cluster
32
- $ cortex cluster up
32
+ cortex cluster up
33
33
```
34
34
35
35
## Deploy an example
36
36
37
37
<!-- CORTEX_VERSION_MINOR -->
38
38
``` bash
39
39
# clone the Cortex repository
40
- $ git clone -b 0.18 https://github.com/cortexlabs/cortex.git
40
+ git clone -b 0.18 https://github.com/cortexlabs/cortex.git
41
41
42
42
# navigate to the TensorFlow iris classification example
43
- $ cd cortex/examples/tensorflow/iris-classifier
43
+ cd cortex/examples/tensorflow/iris-classifier
44
44
45
45
# deploy the model
46
- $ cortex deploy
46
+ cortex deploy
47
47
48
48
# view the status of the api
49
- $ cortex get --watch
49
+ cortex get --watch
50
50
51
51
# stream logs from the api
52
- $ cortex logs iris-classifier
52
+ cortex logs iris-classifier
53
53
54
54
# get the api's endpoint
55
- $ cortex get iris-classifier
55
+ cortex get iris-classifier
56
56
57
57
# classify a sample
58
- $ curl -X POST -H " Content-Type: application/json" \
58
+ curl -X POST -H " Content-Type: application/json" \
59
59
-d ' { "sepal_length": 5.2, "sepal_width": 3.6, "petal_length": 1.4, "petal_width": 0.3 }' \
60
60
< API endpoint>
61
61
62
62
# delete the api
63
- $ cortex delete iris-classifier
63
+ cortex delete iris-classifier
64
64
```
65
65
66
66
See [ uninstall] ( uninstall.md ) if you'd like to spin down your cluster.
0 commit comments