Skip to content

Commit

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

Expand Down

0 comments on commit e074637

Please sign in to comment.