Skip to content

Commit

Permalink
fix: pillow transform hotdog image
Browse files Browse the repository at this point in the history
  • Loading branch information
vancauwe committed Dec 21, 2024
1 parent 2761417 commit a50f169
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ def main() -> None:
# display the image (use cached version, no need to reread)
col1.image(st.session_state.image, use_column_width=True)
# and then run inference on the image
predictions = pipeline_hot_dog(Image(st.session_state.image))
hotdog_image = Image.open(st.session_state.image)
predictions = pipeline_hot_dog(hotdog_image)

col2.header("Probabilities")
first = True
Expand Down

0 comments on commit a50f169

Please sign in to comment.