Spaces:
Runtime error
Runtime error
import streamlit as st | |
from transformers import pipeline | |
from PIL import Image | |
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog") | |
st.title("Hot Dog? Or Not?") | |
file_name = st.file_uploader("Upload the paper you want to see code for") | |
with open(file_name, "r") as f: | |
text = f.read() | |
st.write(text) | |