We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14ce19 commit 2b5f8e7Copy full SHA for 2b5f8e7
README.md
@@ -24,12 +24,25 @@ Cortex is actively maintained by Cortex Labs. We're a venture-backed team of inf
24
- kind: api
25
name: my-api
26
model: s3://my-bucket/my-model.zip
27
- request_handler: transform_payload.py
+ request_handler: handler.py
28
compute:
29
replicas: 4
30
gpu: 2
31
```
32
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
44
+```
45
46
**Deploy** to your cloud infrastructure:
47
48
0 commit comments