File size: 311 Bytes
9abf204
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr

examples = [
    'ladybug.jpg',
    'revolver.jpg',
    'automotive.jpg',
    'frog01.jpg',
    'eagle.jpg'
]

# image = gr.inputs.Image(source='webcam', shape=(224,224))

gr.Interface.load(
    "huggingface/google/vit-base-patch16-224",
    # inputs=image,
    examples=examples).launch()