Handler
Project files
./my-classifier/
├── cortex.yaml
├── values.json
├── handler.py
├── ...
└── requirements.txt# handler.py
import json
class Handler:
def __init__(self, config):
with open('values.json', 'r') as values_file:
values = json.load(values_file)
self.values = valuesInterface
API requests
JSON data
Making the request
Reading the payload
Binary data
Making the request
Reading the payload
Text data
Making the request
Reading the payload
API responses
Chaining APIs
Structured logging
Last updated