AttributeError Traceback (most recent call last)
Input In [22], in on_upload_change(change)
10 global selected_img
11 selected_img = cv2.imread(str(list(ImgUpload.value.keys())[0]), 0)
---> 12 selected_img = selected_img.reshape(selected_img.shape[0], selected_img.shape[1], 1)
14 image_before = Image(value=uploaded_file, width=256, height=256)
16 file = open("No-filter.png", "rb")
AttributeError: 'NoneType' object has no attribute 'reshape'
I did install all the requirements,
but unable to upload any images