Skip to content

Commit 8756000

Browse files
committed
Update docs for new Predictor API
1 parent 4a1ca28 commit 8756000

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docs/deployments/python.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ In addition to supporting Python models via the Python Predictor interface, Cort
3939
```yaml
4040
- kind: api
4141
name: my-api
42-
python:
43-
predictor: predictor.py
42+
predictor:
43+
type: python
44+
path: predictor.py
4445
compute:
4546
gpu: 1
4647
```

docs/packaging-models/onnx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ Reference your model in an `api`:
3434
predictor:
3535
type: onnx
3636
model: s3://my-bucket/model.onnx
37-
predictor: predictor.py
37+
path: predictor.py
3838
```

docs/packaging-models/tensorflow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Reference your model in an `api`:
4141
predictor:
4242
type: tensorflow
4343
model: s3://my-bucket/bert
44-
predictor: predictor.py
44+
path: predictor.py
4545
```
4646
4747
You may also zip the export directory before uploading it:
@@ -60,5 +60,5 @@ Reference the zipped model in an `api`:
6060
predictor:
6161
type: tensorflow
6262
model: s3://my-bucket/bert.zip
63-
predictor: predictor.py
63+
path: predictor.py
6464
```

0 commit comments

Comments
 (0)