Spaces:
Sleeping
Sleeping
ddovidovich
commited on
Commit
·
5b3fee9
1
Parent(s):
3d60775
Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ if image_file is not None:
|
|
149 |
#image=cv2.imread(image_file)
|
150 |
image = Image.open(image_file)
|
151 |
image=np.asarray(image)
|
152 |
-
if len(
|
153 |
image = cv2.cvtColor(image,cv2.COLOR_GRAY2RGB)
|
154 |
st.subheader("Original Image")
|
155 |
st.image(image,width=1100)
|
|
|
149 |
#image=cv2.imread(image_file)
|
150 |
image = Image.open(image_file)
|
151 |
image=np.asarray(image)
|
152 |
+
if len(image.shape) == 2:
|
153 |
image = cv2.cvtColor(image,cv2.COLOR_GRAY2RGB)
|
154 |
st.subheader("Original Image")
|
155 |
st.image(image,width=1100)
|