updated app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ if uploaded_file is not None:
|
|
30 |
with input_col:
|
31 |
st.header("Original")
|
32 |
# Display uploaded image.
|
33 |
-
st.image(img, channels="BGR",
|
34 |
|
35 |
st.header("Filter Examples:")
|
36 |
|
@@ -93,10 +93,9 @@ if uploaded_file is not None:
|
|
93 |
result = Image.fromarray(output[:, :, ::-1])
|
94 |
else:
|
95 |
result = Image.fromarray(output)
|
96 |
-
|
97 |
# Display the download button with the text "Download Output"
|
98 |
download_image_button(result, "output.jpg", "Download Output")
|
99 |
else:
|
100 |
st.header("Output")
|
101 |
st.image(img, channels=color)
|
102 |
-
|
|
|
30 |
with input_col:
|
31 |
st.header("Original")
|
32 |
# Display uploaded image.
|
33 |
+
st.image(img, channels="BGR", use_container_width=True)
|
34 |
|
35 |
st.header("Filter Examples:")
|
36 |
|
|
|
93 |
result = Image.fromarray(output[:, :, ::-1])
|
94 |
else:
|
95 |
result = Image.fromarray(output)
|
96 |
+
|
97 |
# Display the download button with the text "Download Output"
|
98 |
download_image_button(result, "output.jpg", "Download Output")
|
99 |
else:
|
100 |
st.header("Output")
|
101 |
st.image(img, channels=color)
|
|