Antoine Macia commited on
Commit
a9e6740
·
1 Parent(s): 73f45fd

Fix var access

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ learn = load_learner('model.pkl')
16
  categories = ('Door', 'Window')
17
 
18
  def classify_image(img):
19
- pred,idx,probs = learn.predict(im)
20
  return dict(zip(categories, map(float, probs)))
21
 
22
  # %% ../app.ipynb 7
 
16
  categories = ('Door', 'Window')
17
 
18
  def classify_image(img):
19
+ pred,idx,probs = learn.predict(img)
20
  return dict(zip(categories, map(float, probs)))
21
 
22
  # %% ../app.ipynb 7