keyboardsage commited on
Commit
ff004fc
·
verified ·
1 Parent(s): e9666c0

Update app.py

Browse files

Fixing the labels

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ def is_cat(x): return x[0].isupper() # fix hopefully
6
 
7
  learn = load_learner('export.pkl')
8
 
9
- labels = learn.dls.vocab
 
10
  def predict(img):
11
  img = PILImage.create(img)
12
  pred,pred_idx,probs = learn.predict(img)
 
6
 
7
  learn = load_learner('export.pkl')
8
 
9
+ # fixing labels = learn.dls.vocab
10
+ labels = ['dog', 'cat'] # manually set the labels
11
  def predict(img):
12
  img = PILImage.create(img)
13
  pred,pred_idx,probs = learn.predict(img)