Skip to content

Commit 2b5f8e7

Browse files
authored
Update README.md
1 parent b14ce19 commit 2b5f8e7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,25 @@ Cortex is actively maintained by Cortex Labs. We're a venture-backed team of inf
2424
- kind: api
2525
name: my-api
2626
model: s3://my-bucket/my-model.zip
27-
request_handler: transform_payload.py
27+
request_handler: handler.py
2828
compute:
2929
replicas: 4
3030
gpu: 2
3131
```
3232
33+
**Customize** request handling (optional):
34+
35+
```python
36+
# handler.py
37+
38+
def preprocess(payload):
39+
# Python code
40+
41+
42+
def postprocess(prediction):
43+
# Python code
44+
```
45+
3346
**Deploy** to your cloud infrastructure:
3447

3548
```

0 commit comments

Comments
 (0)