File size: 242 Bytes
5c852b7
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import gradio as gr
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-classification", model="miittnnss/pet-classifier-v2")

iface = gr.Interface.from_pipeline(pipe)
iface.queue()
iface.launch()