quickstart ROOT module-attribute ROOT = os.path.abspath(os.path.dirname(__file__)) digits_clf module-attribute digits_clf = pickle.load(open(os.path.join(ROOT, 'data', 'logistic.pkl'), 'rb')) digits_sample module-attribute digits_sample = os.path.join(ROOT, 'data', 'digits_sample.json') chassis_model module-attribute chassis_model = ChassisModel(predict) QuickstartDigitsClassifier module-attribute QuickstartDigitsClassifier = chassis_model DigitsClassifier module-attribute DigitsClassifier = open(os.path.join(ROOT, 'data', 'logistic.pkl'), 'rb') DigitsSampleData module-attribute DigitsSampleData = [{'input': open(digits_sample, 'rb').read()}] predict predict(input_bytes)