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

Back to load_learner.

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 = Learner.load('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 = load_learner('model.pkl')
7
 
8
  categories = ('Dog', 'Cat')
9
  def classify_image(img):