Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ labels = learn.dls.vocab
|
|
8 |
def predict(img):
|
9 |
img = PILImage.create(img)
|
10 |
pred,pred_idx,probs = learn.predict(img)
|
11 |
-
|
12 |
|
13 |
# Provide explanation based on the prediction
|
14 |
if pred == "cancer_positive":
|
|
|
8 |
def predict(img):
|
9 |
img = PILImage.create(img)
|
10 |
pred,pred_idx,probs = learn.predict(img)
|
11 |
+
prediction = str(pred)
|
12 |
|
13 |
# Provide explanation based on the prediction
|
14 |
if pred == "cancer_positive":
|