Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,9 +57,6 @@ def apply_filters(image, grayscale, sepia, brightness, contrast, blur, flip, cro
|
|
| 57 |
def main():
|
| 58 |
apply_custom_css()
|
| 59 |
|
| 60 |
-
# Remove the initial default placeholder (if any)
|
| 61 |
-
st.markdown("<style>.stImage {display: none;}</style>", unsafe_allow_html=True)
|
| 62 |
-
|
| 63 |
# Title and Banner
|
| 64 |
st.title("✨ Advanced Image Editor Pro")
|
| 65 |
st.markdown(
|
|
@@ -70,9 +67,13 @@ def main():
|
|
| 70 |
uploaded_image = st.file_uploader("Upload an image to get started", type=["jpg", "jpeg", "png"])
|
| 71 |
|
| 72 |
if uploaded_image:
|
| 73 |
-
#
|
| 74 |
-
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
# Sidebar Filters
|
| 78 |
st.sidebar.header("🎨 Customize Your Image")
|
|
|
|
| 57 |
def main():
|
| 58 |
apply_custom_css()
|
| 59 |
|
|
|
|
|
|
|
|
|
|
| 60 |
# Title and Banner
|
| 61 |
st.title("✨ Advanced Image Editor Pro")
|
| 62 |
st.markdown(
|
|
|
|
| 67 |
uploaded_image = st.file_uploader("Upload an image to get started", type=["jpg", "jpeg", "png"])
|
| 68 |
|
| 69 |
if uploaded_image:
|
| 70 |
+
# Load the uploaded image
|
| 71 |
+
try:
|
| 72 |
+
image = Image.open(uploaded_image)
|
| 73 |
+
st.image(image, caption="Original Image", use_container_width=True)
|
| 74 |
+
except Exception as e:
|
| 75 |
+
st.error(f"Error loading image: {e}")
|
| 76 |
+
return
|
| 77 |
|
| 78 |
# Sidebar Filters
|
| 79 |
st.sidebar.header("🎨 Customize Your Image")
|