Spaces:
Runtime error
Runtime error
Commit
·
abe7e26
1
Parent(s):
7a67f0e
req
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ categories = ('Dog', 'Cat')
|
|
13 |
|
14 |
def classify_image(img):
|
15 |
pred, idx, probs = learn.predict(img)
|
16 |
-
return
|
17 |
|
18 |
|
19 |
image = gr.inputs.Image(shape=(192, 192))
|
|
|
13 |
|
14 |
def classify_image(img):
|
15 |
pred, idx, probs = learn.predict(img)
|
16 |
+
return dict(zip(categories, map(float, probs)))
|
17 |
|
18 |
|
19 |
image = gr.inputs.Image(shape=(192, 192))
|