Spaces:
Sleeping
Sleeping
shehzaduet
commited on
Commit
•
39f5830
1
Parent(s):
7eff0b7
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ if uploaded_file is not None:
|
|
33 |
if 'contrast' not in st.session_state:
|
34 |
st.session_state.contrast = 1.0
|
35 |
|
36 |
-
# Layout with three columns: Filter Options,
|
37 |
col1, col2, col3 = st.columns([1, 2, 2])
|
38 |
|
39 |
with col1:
|
@@ -60,10 +60,6 @@ if uploaded_file is not None:
|
|
60 |
st.session_state.contrast = contrast
|
61 |
|
62 |
with col2:
|
63 |
-
st.subheader("Original Image")
|
64 |
-
st.image(image, use_container_width=True) # Show the original image
|
65 |
-
|
66 |
-
with col3:
|
67 |
st.subheader("Edited Image")
|
68 |
|
69 |
# Apply filters
|
@@ -82,3 +78,7 @@ if uploaded_file is not None:
|
|
82 |
file_name="edited_image.png",
|
83 |
mime="image/png"
|
84 |
)
|
|
|
|
|
|
|
|
|
|
33 |
if 'contrast' not in st.session_state:
|
34 |
st.session_state.contrast = 1.0
|
35 |
|
36 |
+
# Layout with three columns: Filter Options, Edited Image, Original Image
|
37 |
col1, col2, col3 = st.columns([1, 2, 2])
|
38 |
|
39 |
with col1:
|
|
|
60 |
st.session_state.contrast = contrast
|
61 |
|
62 |
with col2:
|
|
|
|
|
|
|
|
|
63 |
st.subheader("Edited Image")
|
64 |
|
65 |
# Apply filters
|
|
|
78 |
file_name="edited_image.png",
|
79 |
mime="image/png"
|
80 |
)
|
81 |
+
|
82 |
+
with col3:
|
83 |
+
st.subheader("Original Image")
|
84 |
+
st.image(image, use_container_width=True) # Show the original image
|