88
99<!-- CORTEX_VERSION_MINOR -->
1010``` 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) "
1212```
1313
1414Continue 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
2626<!-- CORTEX_VERSION_MINOR -->
2727``` bash
2828# 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) "
3030
3131# provision infrastructure on AWS and spin up a cluster
32- $ cortex cluster up
32+ cortex cluster up
3333```
3434
3535## Deploy an example
3636
3737<!-- CORTEX_VERSION_MINOR -->
3838``` bash
3939# 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
4141
4242# navigate to the TensorFlow iris classification example
43- $ cd cortex/examples/tensorflow/iris-classifier
43+ cd cortex/examples/tensorflow/iris-classifier
4444
4545# deploy the model
46- $ cortex deploy
46+ cortex deploy
4747
4848# view the status of the api
49- $ cortex get --watch
49+ cortex get --watch
5050
5151# stream logs from the api
52- $ cortex logs iris-classifier
52+ cortex logs iris-classifier
5353
5454# get the api's endpoint
55- $ cortex get iris-classifier
55+ cortex get iris-classifier
5656
5757# classify a sample
58- $ curl -X POST -H " Content-Type: application/json" \
58+ curl -X POST -H " Content-Type: application/json" \
5959 -d ' { "sepal_length": 5.2, "sepal_width": 3.6, "petal_length": 1.4, "petal_width": 0.3 }' \
6060 < API endpoint>
6161
6262# delete the api
63- $ cortex delete iris-classifier
63+ cortex delete iris-classifier
6464```
6565
6666See [ uninstall] ( uninstall.md ) if you'd like to spin down your cluster.
0 commit comments