import gradio as gr from transformers import pipeline pipeline = pipeline(task="image-classification", model="marufahmed/which-floof") def predict(image): predictions = pipeline(image) return {p["label"]: p["score"] for p in predictions} gr.Interface( predict, inputs=gr.Image(label="Select potential floof", type="filepath"), outputs=gr.Label(num_top_classes=11), title="Which floof?", allow_flagging="manual" ).launch()