Spaces:
Sleeping
Sleeping
Upload streamlitDeployment.py
Browse files12345678910111213141516171819import streamlit as st
from PIL import Image
# Use a pipeline as a high-level helper
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)streamlitDeployment.pyAdded+19