Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,13 +52,12 @@ def main():
|
|
| 52 |
|
| 53 |
if uploaded_image is not None:
|
| 54 |
image = Image.open(uploaded_image)
|
| 55 |
-
st.image(image, caption="Uploaded Image",
|
| 56 |
-
|
| 57 |
# Filters and enhancements
|
| 58 |
filter_type = st.selectbox("Select Filter", ['None', 'Grayscale', 'Brightness'])
|
| 59 |
if filter_type != 'None':
|
| 60 |
image = apply_filter(image, filter_type)
|
| 61 |
-
st.image(image, caption="Filtered Image",
|
| 62 |
|
| 63 |
# Image adjustments
|
| 64 |
brightness = st.slider("Brightness", 0.0, 2.0, 1.0)
|
|
@@ -82,7 +81,7 @@ def main():
|
|
| 82 |
if flip_direction != 'None':
|
| 83 |
image = flip_image(image, flip_direction)
|
| 84 |
|
| 85 |
-
st.image(image, caption="Edited Image",
|
| 86 |
|
| 87 |
# Download the edited image
|
| 88 |
if st.button("Download Image"):
|
|
|
|
| 52 |
|
| 53 |
if uploaded_image is not None:
|
| 54 |
image = Image.open(uploaded_image)
|
| 55 |
+
st.image(image, caption="Uploaded Image", use_container_width=True)
|
|
|
|
| 56 |
# Filters and enhancements
|
| 57 |
filter_type = st.selectbox("Select Filter", ['None', 'Grayscale', 'Brightness'])
|
| 58 |
if filter_type != 'None':
|
| 59 |
image = apply_filter(image, filter_type)
|
| 60 |
+
st.image(image, caption="Filtered Image", use_container_width=True)
|
| 61 |
|
| 62 |
# Image adjustments
|
| 63 |
brightness = st.slider("Brightness", 0.0, 2.0, 1.0)
|
|
|
|
| 81 |
if flip_direction != 'None':
|
| 82 |
image = flip_image(image, flip_direction)
|
| 83 |
|
| 84 |
+
st.image(image, caption="Edited Image", use_container_width=True)
|
| 85 |
|
| 86 |
# Download the edited image
|
| 87 |
if st.button("Download Image"):
|