bhanusAI commited on
Commit
e48282a
1 Parent(s): bd45a45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,8 +85,8 @@ def sepia(img,plant_type):
85
  print(disease,y_pred[0][disease],max_prob_indx,y_pred[0][max_prob_indx])
86
  if y_pred[0][disease]>y_pred[0][max_prob_indx]:
87
  max_prob_indx = disease
88
- print(label_disease[indx],y_pred[indx],label_disease[max_prob_indx],y_pred[max_prob_indx])
89
- return label_disease[indx],y_pred[indx],label_disease[max_prob_indx],y_pred[max_prob_indx]
90
 
91
  demo = gr.Interface(sepia, [gr.Image(),gr.Radio(["Apple","Blueberry","Cherry","Corn","Grape","Orange","Peach","Pepper","Potato","Raspberry","Soybean","Squash","Strawberry","Tomato"])],["text","number","text","number"])
92
  demo.launch(share=True)
 
85
  print(disease,y_pred[0][disease],max_prob_indx,y_pred[0][max_prob_indx])
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 label_disease[indx],y_pred[0][indx],label_disease[max_prob_indx],y_pred[0][max_prob_indx]
90
 
91
  demo = gr.Interface(sepia, [gr.Image(),gr.Radio(["Apple","Blueberry","Cherry","Corn","Grape","Orange","Peach","Pepper","Potato","Raspberry","Soybean","Squash","Strawberry","Tomato"])],["text","number","text","number"])
92
  demo.launch(share=True)