LucyintheSky
commited on
Commit
•
885e258
1
Parent(s):
d1cebc2
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'] + ' (' + str(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(float(crop[0]['score']) * 100)) + '%)'
|
9 |
return result
|
10 |
|
11 |
iface = gr.Interface(fn=classify,
|