Spaces:
Sleeping
Sleeping
En la función map ponía floats y no float
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, map(
|
21 |
|
22 |
|
23 |
# %% ../drive/MyDrive/Colab Notebooks/app.ipynb 6
|
|
|
17 |
|
18 |
def classify_image(img):
|
19 |
pred,idx,probs = learn.predict(img)
|
20 |
+
return dict(zip(categories, map(float, probs)))
|
21 |
|
22 |
|
23 |
# %% ../drive/MyDrive/Colab Notebooks/app.ipynb 6
|