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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -88,5 +88,8 @@ def sepia(img,plant_type):
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)
 
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,
92
+ [gr.Image(),gr.Radio(["Apple","Blueberry","Cherry","Corn","Grape","Orange","Peach","Pepper","Potato","Raspberry","Soybean","Squash","Strawberry","Tomato"])],
93
+ ["text","number","text","number"],
94
+ live=True)
95
  demo.launch(share=True)