bhanusAI commited on
Commit
5b9df66
·
verified ·
1 Parent(s): e72620b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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],y_pred[0][indx],label_disease[max_prob_indx],y_pred[0][max_prob_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,