updates
Browse files
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 =
|
| 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"
|