christinapeng commited on
Commit
78f49fd
·
verified ·
1 Parent(s): b0740d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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('model.pkl')
16
 
17
- categories = ('Penguin', 'Puffin')
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):