Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,11 @@ from PIL import Image
|
|
| 7 |
import time
|
| 8 |
from fastai.vision.all import *
|
| 9 |
from fastai.learner import load_learner
|
| 10 |
-
|
| 11 |
-
def is_penguin(img):
|
| 12 |
-
return img.split('-')[0]
|
| 13 |
|
| 14 |
#Load the Learner (Exported from ipnyb file with learn.export() )
|
| 15 |
-
learn = load_learner('
|
| 16 |
|
| 17 |
-
categories = ('
|
| 18 |
|
| 19 |
#Classify image
|
| 20 |
def classify_image(cl_img):
|
|
|
|
| 7 |
import time
|
| 8 |
from fastai.vision.all import *
|
| 9 |
from fastai.learner import load_learner
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
#Load the Learner (Exported from ipnyb file with learn.export() )
|
| 12 |
+
learn = load_learner('export.pkl')
|
| 13 |
|
| 14 |
+
categories = ('penguin', 'puffin', 'pufferfish')
|
| 15 |
|
| 16 |
#Classify image
|
| 17 |
def classify_image(cl_img):
|