Skip to content

Commit

Permalink
fix: isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
ispirtraian committed Apr 19, 2024
1 parent 1264012 commit 8dccadb
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 @@ -323,7 +323,7 @@ def _predict_job (self, model_type: str, input, params:dict = None):
bytes_data = None
if isinstance(content, str):
bytes_data=content.encode('utf-8')
elif isinstance(input, Image.Image):
elif isinstance(content, Image.Image):
bytes_data.content.tobytes()
else:
raise Exception("Unsupported content type")
Expand Down

0 comments on commit 8dccadb

Please sign in to comment.