Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from fastai.vision.all import *
|
|
3 |
import skimage
|
4 |
|
5 |
learn = load_learner('model.pkl')
|
6 |
-
labels =
|
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)
|