Simp4me commited on
Commit
53b02cd
·
verified ·
1 Parent(s): b4f3ffa

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -11
src/streamlit_app.py CHANGED
@@ -1,16 +1,8 @@
1
  import streamlit as st
2
- from PIL import Image
3
- import io
4
 
5
- # Display logo (make sure the image is inside your repo, path correct)
6
- st.image("src/RezbinLogo.jpg", width=150)
7
 
8
- st.title("Rezbin AI 📷")
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
- # Read the uploaded image file directly into PIL Image
15
- img = Image.open(uploaded_file)
16
- st.image(img, caption="Uploaded Image", use_container_width=True)
 
1
  import streamlit as st
 
 
2
 
3
+ st.title("Image upload test")
 
4
 
5
+ uploaded_file = st.file_uploader("Upload image", type=["jpg", "png", "jpeg"])
 
 
 
6
 
7
  if uploaded_file is not None:
8
+ st.image(uploaded_file, caption="Uploaded Image")