igalilea commited on
Commit
87693a0
1 Parent(s): 72e5463

En la función map ponía floats y no float

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(floats, probs)))
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