miittnnss commited on
Commit
5c852b7
·
1 Parent(s): 8040ebf

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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()