ferferefer commited on
Commit
93f38e6
1 Parent(s): 297e309
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -37,15 +37,16 @@ if st.button('PREDICT'):
37
  result = model.predict(predict_modified)
38
  if result < 0.5:
39
  probability = 1 - result[0][0]
40
- print(f"Healthy with {probability}%")
41
 
42
  else:
43
  probability = result[0][0]
44
- print(f"Glaucoma with {probability}%")
45
 
46
  image1 = load_img(input_image)
47
  image1 = img_to_array(image1)
48
  image1 = np.array(image1)
 
49
 
50
 
51
 
 
37
  result = model.predict(predict_modified)
38
  if result < 0.5:
39
  probability = 1 - result[0][0]
40
+ st.write(f"Healthy with {probability}%")
41
 
42
  else:
43
  probability = result[0][0]
44
+ st.write(f"Glaucoma with {probability}%")
45
 
46
  image1 = load_img(input_image)
47
  image1 = img_to_array(image1)
48
  image1 = np.array(image1)
49
+ image1 = image1/255
50
 
51
 
52