Spaces:
Runtime error
Runtime error
danielcodex
commited on
Commit
·
ea5f567
1
Parent(s):
16716c6
listening to jeremy LOL
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ categories = ("Dog", "Cat")
|
|
17 |
|
18 |
def classify_image(img):
|
19 |
pred, idx, probs = learn.predict(img)
|
20 |
-
return dict(zip(categories, probs))
|
21 |
|
22 |
# %% ../learning.ipynb 8
|
23 |
image = gr.inputs.Image(shape=(192, 192))
|
|
|
17 |
|
18 |
def classify_image(img):
|
19 |
pred, idx, probs = learn.predict(img)
|
20 |
+
return dict(zip(categories, map(float, probs)))
|
21 |
|
22 |
# %% ../learning.ipynb 8
|
23 |
image = gr.inputs.Image(shape=(192, 192))
|