From bdcff2407b28e47dbb8dffd300acd31a663b2f85 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 22 May 2024 01:11:06 +0900 Subject: [PATCH] fix code --- .../serving/machinelearning-python-bentoml/iris_classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-samples/community/serving/machinelearning-python-bentoml/iris_classifier.py b/code-samples/community/serving/machinelearning-python-bentoml/iris_classifier.py index 324208bf47..dc880d5309 100644 --- a/code-samples/community/serving/machinelearning-python-bentoml/iris_classifier.py +++ b/code-samples/community/serving/machinelearning-python-bentoml/iris_classifier.py @@ -20,4 +20,4 @@ def predict( default=[[5.2, 2.3, 5.0, 0.7]] ), ) -> np.ndarray: - return self.artifacts.model.predict(df) + return self.model.predict(df)