Spaces:
Runtime error
Runtime error
fix ordering of labels
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ image = gr.Image(type='pil', height=192, width=192)
|
|
| 7 |
label = gr.Label()
|
| 8 |
examples = ['grizzly.jpg', 'black-bear.jpg', 'teddy-bear.jpg']
|
| 9 |
|
| 10 |
-
categories = ('
|
| 11 |
|
| 12 |
def classify_image(img):
|
| 13 |
pred, idx, probs = learn.predict(img)
|
|
|
|
| 7 |
label = gr.Label()
|
| 8 |
examples = ['grizzly.jpg', 'black-bear.jpg', 'teddy-bear.jpg']
|
| 9 |
|
| 10 |
+
categories = ('Black Bear', 'Grizzly Bear', 'Teddy Bear')
|
| 11 |
|
| 12 |
def classify_image(img):
|
| 13 |
pred, idx, probs = learn.predict(img)
|