Solab commited on
Commit
fb9ca2c
·
1 Parent(s): a5df82f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ learn = load_learner('01_tomato.pkl')
5
  labels = learn_inf.dls.vocab
6
  def predict(img):
7
  img = PILImage.create(img)
8
- pred,pred_idx,probs = learn_inf.predict(img)
9
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
10
 
11
  title = "Tomato Disease Diagnosis"
 
5
  labels = learn_inf.dls.vocab
6
  def predict(img):
7
  img = PILImage.create(img)
8
+ pred,pred_idx,probs = learn.predict(img)
9
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
10
 
11
  title = "Tomato Disease Diagnosis"