diff --git a/python/examples/pipeline/imdb_model_ensemble/test_pipeline_server.py b/python/examples/pipeline/imdb_model_ensemble/test_pipeline_server.py index bbd37de578c4a75822d21a695bcc0d4356b76ab7..08c6ccce45f0ef707d6921955b487b324c45b03b 100644 --- a/python/examples/pipeline/imdb_model_ensemble/test_pipeline_server.py +++ b/python/examples/pipeline/imdb_model_ensemble/test_pipeline_server.py @@ -30,7 +30,7 @@ logging.basicConfig( class ImdbRequestOp(RequestOp): - def load_user_resources(self): + def init_op(self): self.imdb_dataset = IMDBDataset() self.imdb_dataset.load_resource('imdb.vocab') @@ -46,7 +46,7 @@ class ImdbRequestOp(RequestOp): class CombineOp(Op): - def preprocess(self, input_data): + def preprocess(self, input_data, private_obj): combined_prediction = 0 for op_name, data in input_data.items(): _LOGGER.info("{}: {}".format(op_name, data["prediction"]))