Spaces:
Runtime error
Runtime error
extra paren
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def predict(img: np.ndarray) -> str:
|
|
37 |
imagenet_classes = ['background'] + imagenet_classes
|
38 |
best_class = imagenet_classes[result_index]
|
39 |
# clean up
|
40 |
-
best_class = best_class.partition(' ')[2]
|
41 |
# TODO: get n best results with corresponding probabilities?
|
42 |
return best_class
|
43 |
|
|
|
37 |
imagenet_classes = ['background'] + imagenet_classes
|
38 |
best_class = imagenet_classes[result_index]
|
39 |
# clean up
|
40 |
+
best_class = best_class.partition(' ')[2]
|
41 |
# TODO: get n best results with corresponding probabilities?
|
42 |
return best_class
|
43 |
|