Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,12 +50,12 @@ file = st.file_uploader("Upload an image", type=["png", "jpg", "jpeg"])
|
|
50 |
|
51 |
# uploaded_file = st.file_uploader("Choose a image file", type="jpg")
|
52 |
|
53 |
-
if uploaded_file is not None:
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
-
|
59 |
|
60 |
|
61 |
classes = {4: ('nv', ' melanocytic nevi'), 6: ('mel', 'melanoma'),
|
|
|
50 |
|
51 |
# uploaded_file = st.file_uploader("Choose a image file", type="jpg")
|
52 |
|
53 |
+
# if uploaded_file is not None:
|
54 |
+
# # Convert the file to an opencv image.
|
55 |
+
# file_bytes = np.asarray(bytearray(uploaded_file.read()), dtype=np.uint8)
|
56 |
+
# opencv_image = cv2.imdecode(file_bytes, 1)
|
57 |
|
58 |
+
# st.image(opencv_image, channels="BGR")
|
59 |
|
60 |
|
61 |
classes = {4: ('nv', ' melanocytic nevi'), 6: ('mel', 'melanoma'),
|