File size: 468 Bytes
30a75cc
d5d64c0
30a75cc
d5d64c0
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr
from transformers import pipeline

pipe = pipeline(task="image-classification", 
                model="google/vit-base-patch16-224")


gr.Interface.from_pipeline(pipe, 
                           title="Image Classification",
                           description="Please upload an image by clicking the 'Choose File' button below. We will use this image to demonstrate our image classification capabilities"
                           ).launch()