Spaces:
Sleeping
Sleeping
marcellohalfeld
commited on
Commit
•
7f0d03a
1
Parent(s):
4c22a71
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
from transformers import pipeline
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
images="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg"
|
7 |
-
)
|
|
|
1 |
from transformers import pipeline
|
2 |
+
import gradio as gr
|
3 |
|
4 |
+
pipe = pipeline("image-classification", model="google/vit-base-patch16-224")
|
5 |
+
|
6 |
+
gr.Interface.from_pipeline(pipe).launch()
|
|
|
|