Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def image_classifier0(image):
|
|
25 |
outputs = pipe0(image)
|
26 |
results = {}
|
27 |
for idx,result in enumerate(outputs):
|
28 |
-
labels[idx] = outputs[idx]['score']
|
29 |
return results
|
30 |
def image_classifier1(image):
|
31 |
outputs = pipe1(image)
|
|
|
25 |
outputs = pipe0(image)
|
26 |
results = {}
|
27 |
for idx,result in enumerate(outputs):
|
28 |
+
results[labels[idx]] = outputs[idx]['score']
|
29 |
return results
|
30 |
def image_classifier1(image):
|
31 |
outputs = pipe1(image)
|