Spaces:
Sleeping
Sleeping
fixed another typo
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ categories = learn.dls.vocab
|
|
8 |
|
9 |
def classify_image(img):
|
10 |
pred, idx, probs = learn.predict(img)
|
11 |
-
return dict(zip(categories,
|
12 |
|
13 |
image = gr.inputs.Image(shape=(192,192))
|
14 |
label = gr.outputs.Label()
|
|
|
8 |
|
9 |
def classify_image(img):
|
10 |
pred, idx, probs = learn.predict(img)
|
11 |
+
return dict(zip(categories, map(float, probs)))
|
12 |
|
13 |
image = gr.inputs.Image(shape=(192,192))
|
14 |
label = gr.outputs.Label()
|