LucyintheSky commited on
Commit
7000e84
1 Parent(s): 5260e8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import gradio as gr
 
 
 
2
 
3
  def classify(img):
4
- return img
5
 
6
  iface = gr.Interface(fn=classify, inputs=gr.Image(), outputs="text")
7
  iface.launch()
 
1
  import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ crop_pipe = pipeline("image-classification", model="LucyintheSky/pose-estimation-crop-uncrop")
5
 
6
  def classify(img):
7
+ return crop_pipe(img)
8
 
9
  iface = gr.Interface(fn=classify, inputs=gr.Image(), outputs="text")
10
  iface.launch()