Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -127,9 +127,10 @@ if selected_type == "Upload Image":
|
|
| 127 |
|
| 128 |
image = Image.open(uploaded_file).convert('RGB')
|
| 129 |
st.image(image, use_column_width=True)
|
| 130 |
-
image.save(inpout_img, format="JPEG")
|
| 131 |
|
| 132 |
-
|
|
|
|
|
|
|
| 133 |
|
| 134 |
with st.spinner(f"Working... 💫"):
|
| 135 |
result = FINAL(image)
|
|
|
|
| 127 |
|
| 128 |
image = Image.open(uploaded_file).convert('RGB')
|
| 129 |
st.image(image, use_column_width=True)
|
|
|
|
| 130 |
|
| 131 |
+
cv2.imwrite('inpout_img.jpg', image)
|
| 132 |
+
|
| 133 |
+
image = cv2.imread('inpout_img.jpg')
|
| 134 |
|
| 135 |
with st.spinner(f"Working... 💫"):
|
| 136 |
result = FINAL(image)
|