Predictor
Project files
./my-classifier/
├── cortex.yaml
├── values.json
├── predictor.py
├── ...
└── requirements.txtimport json
class PythonPredictor:
def __init__(self, config):
with open('values.json', 'r') as values_file:
values = json.load(values_file)
self.values = valuesPython Predictor
Interface
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