Ayesha003 commited on
Commit
75dde25
·
verified ·
1 Parent(s): bfb32fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -57,22 +57,20 @@ def apply_filters(image, grayscale, sepia, brightness, contrast, blur, flip, cro
57
  def main():
58
  apply_custom_css()
59
 
60
- # Banner Container
61
- with st.container():
62
- st.image(
63
- "https://via.placeholder.com/1200x300?text=Welcome+to+Image+Editor+Pro",
64
- caption="Edit, Enhance, and Download Your Images Instantly",
65
- use_container_width=True,
66
- )
67
 
68
- # Title
69
  st.title("✨ Advanced Image Editor Pro")
 
 
 
70
 
71
- # File Upload
72
- st.header("Upload Your Image")
73
- uploaded_image = st.file_uploader("Choose an image to edit", type=["jpg", "jpeg", "png"])
74
 
75
  if uploaded_image:
 
76
  image = Image.open(uploaded_image)
77
  st.image(image, caption="Original Image", use_container_width=True)
78
 
@@ -113,6 +111,9 @@ def main():
113
  file_name="edited_image.png",
114
  mime="image/png"
115
  )
 
 
 
116
 
117
  # Footer
118
  st.markdown("---")
 
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(
66
+ "Edit, Enhance, and Download Your Images Instantly with Professional Filters"
67
+ )
68
 
69
+ # Image Upload
70
+ uploaded_image = st.file_uploader("Upload an image to get started", type=["jpg", "jpeg", "png"])
 
71
 
72
  if uploaded_image:
73
+ # Display Uploaded Image
74
  image = Image.open(uploaded_image)
75
  st.image(image, caption="Original Image", use_container_width=True)
76
 
 
111
  file_name="edited_image.png",
112
  mime="image/png"
113
  )
114
+ else:
115
+ # Message when no image is uploaded
116
+ st.info("👆 Upload an image to start editing.")
117
 
118
  # Footer
119
  st.markdown("---")