amit-asl
commited on
Commit
•
937fe5b
1
Parent(s):
6ee0bf8
fix: load_learner
Browse files
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 =
|
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]
|