File size: 321 Bytes
391a220
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
# an image classification demo!

import gradio as gr

model1 = gr.Interface.load("huggingface/microsoft/beit-base-patch16-224")
model2 = gr.Interface.load("huggingface/google/vit-base-patch16-224")

gr.Parallel(model1, model2,
           examples=['cat.jpg', 'dog.jpg', 'alligator knife head.jpg', 'moskva.jpg']).launch()