langurmonkey commited on
Commit
ef70821
·
unverified ·
1 Parent(s): ffedbb4

Use Learner.load

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from fastai.vision.all import *
3
 
4
  def is_cat(x): return x[0].isupper()
5
 
6
- learn = load_learner('model.pkl')
7
 
8
  categories = ('Dog', 'Cat')
9
  def classify_image(img):
 
3
 
4
  def is_cat(x): return x[0].isupper()
5
 
6
+ learn = Learner.load('model.pkl')
7
 
8
  categories = ('Dog', 'Cat')
9
  def classify_image(img):