Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from transformers import pipeline
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
gr.Interface(
|
| 11 |
-
predict,
|
| 12 |
-
inputs=gr.inputs.Image(type="filepath"),
|
| 13 |
-
outputs=gr.outputs.Label(num_top_classes=1),
|
| 14 |
-
).launch()
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
+
examples = [
|
| 4 |
+
'tiget.jpg',
|
| 5 |
+
'teapot.jpg',
|
| 6 |
+
'palace.jpg'
|
| 7 |
+
]
|
| 8 |
|
| 9 |
+
gr.Interface.load(
|
| 10 |
+
"google/vit-base-patch16-224",
|
| 11 |
+
examples=examples).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|