GDavila commited on
Commit
7cb0e99
1 Parent(s): 919a2bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -17,7 +17,10 @@ else:
17
  import cv2
18
  import numpy as np
19
 
20
- user_image_name = "/content/input_image.png"
 
 
 
21
 
22
  # load image with alpha channel
23
  img = cv2.imread( user_image_name , cv2.IMREAD_UNCHANGED)
 
17
  import cv2
18
  import numpy as np
19
 
20
+ user_image_name = st.file_uploader(label, type=['png', 'jpg'], accept_multiple_files=False)
21
+
22
+ if user_image_name is not None:
23
+ st.image(user_image_name )
24
 
25
  # load image with alpha channel
26
  img = cv2.imread( user_image_name , cv2.IMREAD_UNCHANGED)