Spaces:
Runtime error
Runtime error
Viet
commited on
Commit
•
391a220
1
Parent(s):
2a4ae94
add application file and sample images
Browse files- alligator knife head.jpg +0 -0
- app.py +10 -0
- cat.jpg +0 -0
- dog.jpg +0 -0
- grizzly.jpg +0 -0
- 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