Spaces:
Sleeping
Sleeping
File size: 346 Bytes
ab353b1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from transformers import pipeline
import streamlit as st
from PIL import Image
pipe = pipeline("image-classification", model="julien-c/hotdog-not-hotdog")
uploaded_file = st.file_uploader("Choose a file")
if uploaded_file is not None:
img = Image.open(uploaded_file)
st.image(img)
predictions = pipe(img)
st.write(predictions) |