Spaces:
Sleeping
Sleeping
Update app.py
Browse files11 unmodified lines12131415161718192021222324252627282911 unmodified linesif uploaded_file:# Load the imageimage = Image.open(uploaded_file)st.image(image, caption="Original Image", use_column_width=True)# Grayscale filterif st.checkbox("Apply Grayscale"):image = ImageOps.grayscale(image)st.image(image, caption="Grayscale Image", use_column_width=True)# Brightness adjustmentbrightness = 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)# Download the edited imagebuf = io.BytesIO()11 unmodified lines12131415161718192021222324252627282911 unmodified linesif uploaded_file:# Load the imageimage = Image.open(uploaded_file)st.image(image, caption="Original Image", use_container_width=True)# Grayscale filterif st.checkbox("Apply Grayscale"):image = ImageOps.grayscale(image)st.image(image, caption="Grayscale Image", use_container_width=True)# Brightness adjustmentbrightness = 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_container_width=True)# Download the edited imagebuf = io.BytesIO()
app.py+3-3