Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,11 +17,12 @@ else:
|
|
17 |
import cv2
|
18 |
import numpy as np
|
19 |
|
20 |
-
user_image_name = st.file_uploader(
|
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)
|
27 |
|
|
|
17 |
import cv2
|
18 |
import numpy as np
|
19 |
|
20 |
+
user_image_name = st.file_uploader("upload your image", type=['png', 'jpg'], accept_multiple_files=False)
|
21 |
|
22 |
if user_image_name is not None:
|
23 |
st.image(user_image_name )
|
24 |
|
25 |
+
|
26 |
# load image with alpha channel
|
27 |
img = cv2.imread( user_image_name , cv2.IMREAD_UNCHANGED)
|
28 |
|