Spaces:
Sleeping
Sleeping
File size: 526 Bytes
f592388 6bb0de0 f592388 6bb0de0 d3ba833 6bb0de0 a0d03a0 806c15a ad8017d d3ba833 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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="Final project that labels flowers images into: Daisy, Dandelion, Rose, Sunflower, Tulip",
title="Flower Classifier - Vit"
)
iface.launch() |