Felipe
commited on
Commit
·
be95d69
1
Parent(s):
738dc2f
Extra colon
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ categories = ('Teddy', 'Grizzly', 'Black Bear')
|
|
10 |
|
11 |
def classify_image(img):
|
12 |
pred, idx, probs= learn.predict(img)
|
13 |
-
return dict(zip(categories
|
14 |
|
15 |
image = gr.inputs.Image(shape=(192, 192))
|
16 |
label = gr.outputs.Label()
|
|
|
10 |
|
11 |
def classify_image(img):
|
12 |
pred, idx, probs= learn.predict(img)
|
13 |
+
return dict(zip(categories, map(float, probs)))
|
14 |
|
15 |
image = gr.inputs.Image(shape=(192, 192))
|
16 |
label = gr.outputs.Label()
|