Skip to content

Commit

Permalink
fix: image check
Browse files Browse the repository at this point in the history
  • Loading branch information
ispirtraian committed Apr 18, 2024
1 parent 3c6cef7 commit 0a60ace
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 @@ -302,7 +302,7 @@ def _predict_job (self, model_type: str, input, params:dict = None):
#transform input to bytes if necessary
if isinstance(input, str):
bytes_data = input.encode('utf-8')
elif isinstance(input, Image):
elif isinstance(input, Image.Image):
bytes_data = input.tobytes()
elif isinstance(input, List):
bytes_data = json.dumps(input).encode('utf-8')
Expand Down

0 comments on commit 0a60ace

Please sign in to comment.