manoh2f2's picture
Update app.py
6bb0de0
raw
history blame
479 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("image-classification", model="manoh2f2/finetuned-vit-flowers")
images = ["images/daisy.jpg", "images/dandelion.jpg", "images/rosa.jpg", "images/sunflower.jpg", "images/tulip.jpg"]
iface = gr.Interface.from_pipeline(
pipe,
examples= [ [example] for example in images],
description="Daisy, Dandelion, Rose, Sonflower, Tulip",
title="FLower Classifier - Vit"
)
iface.launch()