Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,10 @@ def analyse(img,plant_type):
|
|
37 |
print(disease,y_pred[0][disease],max_prob_indx,y_pred[0][max_prob_indx])
|
38 |
if y_pred[0][disease]>y_pred[0][max_prob_indx]:
|
39 |
max_prob_indx = disease
|
40 |
-
print(label_disease[indx]
|
|
|
|
|
|
|
41 |
return int(indx),max_prob_indx,label_disease[indx],y_pred[0][indx],label_disease[max_prob_indx],y_pred[0][max_prob_indx]
|
42 |
|
43 |
demo = gr.Interface(analyse,
|
|
|
37 |
print(disease,y_pred[0][disease],max_prob_indx,y_pred[0][max_prob_indx])
|
38 |
if y_pred[0][disease]>y_pred[0][max_prob_indx]:
|
39 |
max_prob_indx = disease
|
40 |
+
print(label_disease[indx])
|
41 |
+
print(y_pred[0][indx])
|
42 |
+
print(label_disease[max_prob_indx])
|
43 |
+
print(y_pred[0][max_prob_indx])
|
44 |
return int(indx),max_prob_indx,label_disease[indx],y_pred[0][indx],label_disease[max_prob_indx],y_pred[0][max_prob_indx]
|
45 |
|
46 |
demo = gr.Interface(analyse,
|