ddovidovich commited on
Commit
9d8b45e
·
1 Parent(s): ca58db8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -146,6 +146,8 @@ if image_file is not None:
146
 
147
  #image=cv2.imread(image_file)
148
  image = Image.open(image_file)
 
 
149
  st.subheader("Original Image")
150
  st.image(image,width=1100)
151
 
 
146
 
147
  #image=cv2.imread(image_file)
148
  image = Image.open(image_file)
149
+ image=np.asarray(image)
150
+ image = cv2.cvtColor(image,cv2.COLOR_GRAY2RGB)
151
  st.subheader("Original Image")
152
  st.image(image,width=1100)
153