LucyintheSky
commited on
Commit
•
d1cebc2
1
Parent(s):
8bb3f04
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ crop_pipe = pipeline("image-classification", model="LucyintheSky/pose-estimation
|
|
5 |
|
6 |
def classify(img):
|
7 |
crop = crop_pipe(img)
|
8 |
-
result = crop[0]['label'] + ' (' + int(crop[0]['score']) * 100 + '%)'
|
9 |
return result
|
10 |
|
11 |
iface = gr.Interface(fn=classify,
|
|
|
5 |
|
6 |
def classify(img):
|
7 |
crop = crop_pipe(img)
|
8 |
+
result = crop[0]['label'] + ' (' + str(int(crop[0]['score']) * 100) + '%)'
|
9 |
return result
|
10 |
|
11 |
iface = gr.Interface(fn=classify,
|