Spaces:
Sleeping
Sleeping
ferferefer
commited on
Commit
•
297e309
1
Parent(s):
4e31cd6
commit
Browse files
app.py
CHANGED
@@ -28,6 +28,7 @@ model.load_weights(model_file)
|
|
28 |
st.title('RIM_ONE Glaucoma Image Classifier')
|
29 |
input_image = st.file_uploader('Upload image')
|
30 |
|
|
|
31 |
if st.button('PREDICT'):
|
32 |
|
33 |
predict = load_img(input_image, target_size=img_shape)
|
@@ -46,6 +47,7 @@ if st.button('PREDICT'):
|
|
46 |
image1 = img_to_array(image1)
|
47 |
image1 = np.array(image1)
|
48 |
|
|
|
49 |
|
50 |
-
st.image(image1, caption='Uploaded Image', use_column_width=True)
|
51 |
|
|
|
28 |
st.title('RIM_ONE Glaucoma Image Classifier')
|
29 |
input_image = st.file_uploader('Upload image')
|
30 |
|
31 |
+
|
32 |
if st.button('PREDICT'):
|
33 |
|
34 |
predict = load_img(input_image, target_size=img_shape)
|
|
|
47 |
image1 = img_to_array(image1)
|
48 |
image1 = np.array(image1)
|
49 |
|
50 |
+
|
51 |
|
52 |
+
st.image(image1, caption='Uploaded Image', use_column_width=True, clamp=True)
|
53 |
|