Viet commited on
Commit
391a220
1 Parent(s): 2a4ae94

add application file and sample images

Browse files
Files changed (6) hide show
  1. alligator knife head.jpg +0 -0
  2. app.py +10 -0
  3. cat.jpg +0 -0
  4. dog.jpg +0 -0
  5. grizzly.jpg +0 -0
  6. moskva.jpg +0 -0
alligator knife head.jpg ADDED
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # an image classification demo!
2
+
3
+ import torch
4
+ import gradio as gr
5
+
6
+ model1 = gr.Interface.load("huggingface/microsoft/beit-base-patch16-224")
7
+ model2 = gr.Interface.load("huggingface/google/vit-base-patch16-224")
8
+
9
+ gr.Parallel(model1, model2,
10
+ examples=['cat.jpg', 'dog.jpg', 'alligator knife head.jpg', 'moskva.jpg']).launch()
cat.jpg ADDED
dog.jpg ADDED
grizzly.jpg ADDED
moskva.jpg ADDED