Skip to content

Commit b254d1b

Browse files
committed
Update README.md
1 parent a16f537 commit b254d1b

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def predict(sample, metadata):
5050
name: classifier
5151
predictor:
5252
path: predictor.py
53+
tracker:
54+
model_type: classification
5355
compute:
5456
gpu: 1
5557
```
@@ -59,15 +61,7 @@ def predict(sample, metadata):
5961
```bash
6062
$ cortex deploy
6163

62-
deployment started
63-
64-
65-
$ cortex get classifier --watch
66-
67-
status up-to-date available requested last update avg latency
68-
live 1 1 1 8s 123ms
69-
70-
url: http://***.amazonaws.com/sentiment/classifier
64+
created endpoint: http://***.amazonaws.com/sentiment/classifier
7165
```
7266
7367
### Step 4: serve real-time predictions
@@ -80,6 +74,19 @@ $ curl http://***.amazonaws.com/sentiment/classifier \
8074
positive
8175
```
8276

77+
### Step 5: monitor your deployment
78+
79+
```bash
80+
$ cortex get classifier --watch
81+
82+
status up-to-date available requested last update avg latency
83+
live 1 1 1 8s 123ms
84+
85+
class count
86+
positive 8
87+
negative 4
88+
```
89+
8390
<br>
8491

8592
## How Cortex works
@@ -88,7 +95,7 @@ The CLI sends configuration and code to the cluster every time you run `cortex d
8895

8996
<br>
9097

91-
## More examples
98+
## Examples
9299

93100
<!-- CORTEX_VERSION_README_MINOR x4 -->
94101
- [Sentiment analysis](https://github.com/cortexlabs/cortex/tree/0.10/examples/tensorflow/sentiment-analysis) in TensorFlow with BERT

0 commit comments

Comments
 (0)