Update app.py
Browse files
app.py
CHANGED
@@ -127,8 +127,12 @@ if selected_type == "Upload Image":
|
|
127 |
image = Image.open(uploaded_file).convert('RGB')
|
128 |
st.image(image, use_column_width=True)
|
129 |
|
|
|
|
|
|
|
|
|
130 |
with st.spinner(f"Working... 💫"):
|
131 |
-
result = FINAL(
|
132 |
|
133 |
st.image(result)
|
134 |
|
|
|
127 |
image = Image.open(uploaded_file).convert('RGB')
|
128 |
st.image(image, use_column_width=True)
|
129 |
|
130 |
+
img = io.BytesIO(image)
|
131 |
+
img = cv.imdecode(file_bytes, cv.IMREAD_COLOR)
|
132 |
+
|
133 |
+
|
134 |
with st.spinner(f"Working... 💫"):
|
135 |
+
result = FINAL(img)
|
136 |
|
137 |
st.image(result)
|
138 |
|