Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -13,8 +13,9 @@ def get_image_path(img):
|
|
13 |
uploaded_file = st.file_uploader("**Upload a Chest X-Ray Image**", type= ['png', 'jpg'] )
|
14 |
if uploaded_file is not None:
|
15 |
# Get actual image file
|
16 |
-
|
17 |
-
st.image(
|
18 |
-
item = cv2.
|
|
|
19 |
|
20 |
st.image(item)
|
|
|
13 |
uploaded_file = st.file_uploader("**Upload a Chest X-Ray Image**", type= ['png', 'jpg'] )
|
14 |
if uploaded_file is not None:
|
15 |
# Get actual image file
|
16 |
+
fpath= get_image_path(uploaded_file)
|
17 |
+
st.image(fpath)
|
18 |
+
item = cv2.imread(fpath)
|
19 |
+
item = cv2.cvtColor(item, cv2.COLOR_BGR2GRAY)
|
20 |
|
21 |
st.image(item)
|