Towhidul commited on
Commit
9f19a81
1 Parent(s): 42c16c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- # 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'),
 
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'),