Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def pred(img):
|
|
78 |
# plt.imsave(fn,image_np)
|
79 |
# plt.imshow(image_np)
|
80 |
# plt.imsave(fn,image_np)
|
81 |
-
return(image_np)
|
82 |
|
83 |
|
84 |
|
@@ -98,6 +98,8 @@ def main():
|
|
98 |
x = pred(image)
|
99 |
st.markdown('<p style="text-align: center;"><label>Prediction : </label></p>',unsafe_allow_html=True)
|
100 |
st.image(x,width=900)
|
|
|
|
|
101 |
# result =''
|
102 |
# st.success('The output is {}'.format(result))
|
103 |
if __name__ == '__main__': #
|
|
|
78 |
# plt.imsave(fn,image_np)
|
79 |
# plt.imshow(image_np)
|
80 |
# plt.imsave(fn,image_np)
|
81 |
+
return(image_np,scores[0][0]*100,scores[0][1]*100)
|
82 |
|
83 |
|
84 |
|
|
|
98 |
x = pred(image)
|
99 |
st.markdown('<p style="text-align: center;"><label>Prediction : </label></p>',unsafe_allow_html=True)
|
100 |
st.image(x,width=900)
|
101 |
+
st.write('Optic Disease Score',optic)
|
102 |
+
st.write('Macula Score',macula)
|
103 |
# result =''
|
104 |
# st.success('The output is {}'.format(result))
|
105 |
if __name__ == '__main__': #
|