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

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

# works w/ gradio v4

demo = gr.load("google/vit-base-patch16-224", src="models", examples=examples) # with examples
# demo = gr.load("google/vit-base-patch16-224", src="models") # no examples

demo.launch()