Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,10 @@ else:
|
|
| 17 |
import cv2
|
| 18 |
import numpy as np
|
| 19 |
|
| 20 |
-
user_image_name =
|
|
|
|
|
|
|
|
|
|
| 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)
|