Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|