Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def main():
|
|
70 |
|
71 |
if uploaded_file is not None:
|
72 |
# Read the uploaded image
|
73 |
-
image = cv2.imdecode(np.fromstring(uploaded_file.read(), np.uint8), cv2.
|
74 |
|
75 |
# Perform inference on the uploaded image
|
76 |
original_image, mask, segmented_image = perform_inference(image)
|
|
|
70 |
|
71 |
if uploaded_file is not None:
|
72 |
# Read the uploaded image
|
73 |
+
image = cv2.imdecode(np.fromstring(uploaded_file.read(), np.uint8), cv2.IMREAD_COLOR)
|
74 |
|
75 |
# Perform inference on the uploaded image
|
76 |
original_image, mask, segmented_image = perform_inference(image)
|