Skip to content

Commit

Permalink
fix: predict_images
Browse files Browse the repository at this point in the history
  • Loading branch information
ispirtraian committed Apr 19, 2024
1 parent 964c9ac commit 121d6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/serving/serving_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def predict_image(self, image_data: bytes, params: dict = None):
self.P(f"Predict image with size: {len(image_data)}")
return self._predict_job('image', image, params)

def predict_image(self, image_data_list: List[bytes], params: dict = None):
def predict_images(self, image_data_list: List[bytes], params: dict = None):
images = []
for image_data in image_data_list:
image = Image.open(io.BytesIO(image_data))
Expand Down

0 comments on commit 121d6a1

Please sign in to comment.