Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -8
src/streamlit_app.py
CHANGED
@@ -2,15 +2,10 @@ import streamlit as st
|
|
2 |
from PIL import Image
|
3 |
import io
|
4 |
|
5 |
-
|
6 |
-
st.image("src/RezbinLogo.jpg", width=150)
|
7 |
|
8 |
-
st.
|
9 |
-
st.write("Upload an image of your waste before throwing it.")
|
10 |
-
|
11 |
-
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "png", "jpeg"])
|
12 |
|
13 |
if uploaded_file is not None:
|
14 |
-
# Open image directly from uploaded file buffer (no temp file needed)
|
15 |
img = Image.open(io.BytesIO(uploaded_file.read()))
|
16 |
-
st.image(img, caption="Uploaded Image"
|
|
|
2 |
from PIL import Image
|
3 |
import io
|
4 |
|
5 |
+
st.title("Minimal Image Upload Test")
|
|
|
6 |
|
7 |
+
uploaded_file = st.file_uploader("Upload image", type=["png", "jpg", "jpeg"])
|
|
|
|
|
|
|
8 |
|
9 |
if uploaded_file is not None:
|
|
|
10 |
img = Image.open(io.BytesIO(uploaded_file.read()))
|
11 |
+
st.image(img, caption="Uploaded Image")
|