Spaces:
Sleeping
Sleeping
Update app.py
Browse files11 unmodified lines12131415151617181920202122232425262627282911 unmodified linesif uploaded_file: # Load the image image = Image.open(uploaded_file) st.image(image, caption="Original Image", use_column_width=True) st.image(image, caption="Original Image", use_container_width=True) # Grayscale filter if st.checkbox("Apply Grayscale"): image = ImageOps.grayscale(image) st.image(image, caption="Grayscale Image", use_column_width=True) st.image(image, caption="Grayscale Image", use_container_width=True) # Brightness adjustment brightness = st.slider("Adjust Brightness", 0.5, 3.0, 1.0, step=0.1) enhancer = ImageEnhance.Brightness(image) image = enhancer.enhance(brightness) st.image(image, caption="Brightness Adjusted Image", use_column_width=True) st.image(image, caption="Brightness Adjusted Image", use_container_width=True) # Download the edited image buf = io.BytesIO()app.py+3-3