Spaces:
Runtime error
Runtime error
Commit History
-
Update app.py
Verified signature2f85004 -
Update app.py
Verified signaturef615de2 -
Create app.py
Verified signaturec513c85 -
Create App. Py
Verified signaturec733130 -
Update App. Py
Verified signatureimport streamlit as st from PIL import Image, ImageOps # Function to apply effects def apply_effect(image, effect): if effect == "kiss": image = image.convert("L") # Convert to grayscale elif effect == "sepia": sepia_img = ImageOps.colorize(image.convert("L"), black="black", white="orange") image = sepia_img elif effect == "invert": image = ImageOps.invert(image.convert("RGB")) return image # Streamlit app st.title("Image Effect Converter") # Upload image uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"]) if uploaded_file is not None: # Display the uploaded image image = Image.open(uploaded_file) st.image(image, caption="Uploaded Image", use_column_width=True) # Select an effect effect = st.selectbox("Choose an effect", ["kiss", "sepia", "invert"]) # Apply effect if st.button("Apply Effect"): processed_image = apply_effect(image, effect) st.image(processed_im…f0d3742 -
Create App. Py
Verified signature9fbeb61 -
Create App. Py
Verified signature819a861 -
Update App. Py
Verified signaturef225ac9 -
Create requirements.txt
Verified signature3a6bf6d -
Create App. Py
Verified signature466b748 -
initial commit
Verified signatureed27113