File size: 451 Bytes
a87919e 6c696fb a87919e 6c696fb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import streamlit as st
from PIL import Image
import io
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)
st.title("Image Upload and Processing App")
# Upload the image
uploaded_image = st.file_uploader("Upload an Image", type=["jpg", "png", "jpeg"])
# Process and display if image is uploaded
if uploaded_image is not None:
image = Image.open(uploaded_image)
st.image(image, caption="Uploaded Image", use_column_width=True) |