amit-asl commited on
Commit
937fe5b
1 Parent(s): 6ee0bf8

fix: load_learner

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from PIL import Image
3
  from fastai.vision.all import *
4
 
5
  def predict_image(image):
6
- learner = learner_load('export.pkl')
7
  img = PILImage.create(image)
8
  pred = learner.predict(img)
9
  return pred[0]
 
3
  from fastai.vision.all import *
4
 
5
  def predict_image(image):
6
+ learner = load_learner('export.pkl')
7
  img = PILImage.create(image)
8
  pred = learner.predict(img)
9
  return pred[0]