Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
# Use a pipeline as a high-level helper
|
3 |
+
from transformers import pipeline
|
4 |
+
|
5 |
+
pipe = pipeline("image-classification", model="miittnnss/pet-classifier-v2")
|
6 |
+
|
7 |
+
iface = gr.Interface.from_pipeline(pipe)
|
8 |
+
iface.queue()
|
9 |
+
iface.launch()
|