sl207 commited on
Commit
3453836
1 Parent(s): ba7f700

Update app.py

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
  import skimage
4
 
5
  learn = load_learner('model.pkl')
6
- labels = ['Adidas Shoe', 'New Balance Shoe', 'Nike Show']
7
  def predict(image):
8
  image = PILImage.create(image)
9
  brand, idx, probs = learn.predict(image)
 
3
  import skimage
4
 
5
  learn = load_learner('model.pkl')
6
+ labels = learn.dls.vocab
7
  def predict(image):
8
  image = PILImage.create(image)
9
  brand, idx, probs = learn.predict(image)