mouadenna commited on
Commit
b62bbaf
1 Parent(s): 1320ad9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -44,6 +44,7 @@ if canvas_result.image_data is not None:
44
 
45
  # Convert the canvas image data to a PIL image
46
  image = Image.fromarray(canvas_result.image_data.astype('uint8'), 'RGBA').convert('RGB')
 
47
 
48
  # Save the image to a temporary file
49
  temp_image_path = "temp_drawing.png"
 
44
 
45
  # Convert the canvas image data to a PIL image
46
  image = Image.fromarray(canvas_result.image_data.astype('uint8'), 'RGBA').convert('RGB')
47
+ st.image(image)
48
 
49
  # Save the image to a temporary file
50
  temp_image_path = "temp_drawing.png"