vumichien commited on
Commit
369428e
1 Parent(s): 11e4dea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -19,6 +19,7 @@ def get_x(r):
19
  return path/r["fname"]
20
 
21
  learner = from_pretrained_fastai(repo_id)
 
22
 
23
  def inference(image):
24
  label_predict,_,probs = learner.predict(image)
 
19
  return path/r["fname"]
20
 
21
  learner = from_pretrained_fastai(repo_id)
22
+ labels = learner.dls.vocab
23
 
24
  def inference(image):
25
  label_predict,_,probs = learner.predict(image)