Skip to content

Commit

Permalink
fix: PIL image for hotdog classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
vancauwe committed Dec 21, 2024
1 parent 8810ca7 commit 2761417
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#import datetime
from PIL import Image

import json
import logging
import os
Expand Down Expand Up @@ -331,7 +333,7 @@ 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(st.session_state.image)
predictions = pipeline_hot_dog(Image(st.session_state.image))

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

0 comments on commit 2761417

Please sign in to comment.