hotdog-gradio / app.py
NimaBoscarino's picture
Update app.py
02b9180
raw
history blame
382 Bytes
import gradio as gr
from transformers import pipeline
# Initialize hotdog-not-hotdog pipeline
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
def predict(image):
return pipeline(image)
gr.Interface(
predict,
inputs=gradio.inputs.Image(label="Upload hot dog candidate"),
outputs="image",
title="Hot Dog? Or Not?",
).launch()