Gosula commited on
Commit
6b0f035
1 Parent(s): 71076b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -100,6 +100,7 @@ canvas_result = st_canvas(
100
  # Do something interesting with the image data and paths
101
  if canvas_result.image_data is not None:
102
  #st.image(canvas_result.image_data)
 
103
  image1 = image.copy()
104
  image1 = image1.astype('float32') # Convert to float32
105
  image1 = cv2.cvtColor(image1, cv2.COLOR_BGR2GRAY)
 
100
  # Do something interesting with the image data and paths
101
  if canvas_result.image_data is not None:
102
  #st.image(canvas_result.image_data)
103
+ image = canvas_result.image_data
104
  image1 = image.copy()
105
  image1 = image1.astype('float32') # Convert to float32
106
  image1 = cv2.cvtColor(image1, cv2.COLOR_BGR2GRAY)