panditamey commited on
Commit
e0a5ec3
1 Parent(s): a04b4fe

Update appp.py

Browse files
Files changed (1) hide show
  1. appp.py +1 -1
appp.py CHANGED
@@ -40,7 +40,7 @@ def upload_image():
40
  finally:
41
  imag.close()
42
  print(imag)
43
- classes = ['Pepper__bell___Bacterial_spot', 'Pepper__bell___healthy', 'Potato___Early_blight', 'Potato___Late_blight', 'Potato___healthy', 'Tomato_Bacterial_spot', 'Tomato_Early_blight', 'Tomato_Late_blight', 'Tomato_Leaf_Mold', 'Tomato_Septoria_leaf_spot', 'Tomato_Spider_mites_Two_spotted_spider_mite', 'Tomato__Target_Spot', 'Tomato__Tomato_YellowLeaf__Curl_Virus', 'Tomato__Tomato_mosaic_virus', 'Tomato_healthy']
44
  img=image.load_img(str(imag.filename),target_size=(224,224))
45
  x=image.img_to_array(img)
46
  x=x/255
 
40
  finally:
41
  imag.close()
42
  print(imag)
43
+ classes = ['Pepper bell Bacterial spot', 'Pepper bell healthy', 'Potato Early blight', 'Potato Late blight', 'Potato healthy', 'Tomato Bacterial spot', 'Tomato Early blight', 'Tomato Late blight', 'Tomato Leaf Mold', 'Tomato Septoria leaf spot', 'Tomato Spider mites Two spotted spider mite', 'Tomato Target Spot', 'Tomato Tomato YellowLeaf Curl Virus', 'Tomato Tomato mosaic virus', 'Tomato healthy']
44
  img=image.load_img(str(imag.filename),target_size=(224,224))
45
  x=image.img_to_array(img)
46
  x=x/255