Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def sepia(img,plant_type):
|
|
86 |
if y_pred[0][disease]>y_pred[0][max_prob_indx]:
|
87 |
max_prob_indx = disease
|
88 |
print(label_disease[indx],y_pred[0][indx],label_disease[max_prob_indx],y_pred[0][max_prob_indx])
|
89 |
-
return indx,max_prob_indx,label_disease[indx],y_pred[0][indx],label_disease[max_prob_indx],y_pred[0][max_prob_indx]
|
90 |
|
91 |
demo = gr.Interface(sepia,
|
92 |
[gr.Image(),gr.Radio(["Apple","Blueberry","Cherry","Corn","Grape","Orange","Peach","Pepper","Potato","Raspberry","Soybean","Squash","Strawberry","Tomato"])],
|
|
|
86 |
if y_pred[0][disease]>y_pred[0][max_prob_indx]:
|
87 |
max_prob_indx = disease
|
88 |
print(label_disease[indx],y_pred[0][indx],label_disease[max_prob_indx],y_pred[0][max_prob_indx])
|
89 |
+
return int(indx),max_prob_indx,label_disease[indx],y_pred[0][indx],label_disease[max_prob_indx],y_pred[0][max_prob_indx]
|
90 |
|
91 |
demo = gr.Interface(sepia,
|
92 |
[gr.Image(),gr.Radio(["Apple","Blueberry","Cherry","Corn","Grape","Orange","Peach","Pepper","Potato","Raspberry","Soybean","Squash","Strawberry","Tomato"])],
|