Update src/streamlit_app.py
Browse files- src/streamlit_app.py +13 -3
src/streamlit_app.py
CHANGED
@@ -1,8 +1,18 @@
|
|
|
|
|
|
1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
st.
|
|
|
|
|
4 |
|
5 |
-
uploaded_file = st.file_uploader("
|
6 |
|
7 |
if uploaded_file is not None:
|
8 |
-
|
|
|
|
|
|
1 |
+
|
2 |
+
|
3 |
import streamlit as st
|
4 |
+
from PIL import Image
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
|
9 |
+
st.image("RezbinLogo.jpg", width=150)
|
10 |
+
st.title("Rezbin AI 📷")
|
11 |
+
st.write("Upload an image of your waste before throwing it.")
|
12 |
|
13 |
+
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "png", "jpeg"])
|
14 |
|
15 |
if uploaded_file is not None:
|
16 |
+
img = Image.open(uploaded_file)
|
17 |
+
st.image(img, caption="Uploaded Image", use_container_width=True)
|
18 |
+
st.markdown('<div class="orange-background">This is a can. You earn 0.50</div>', unsafe_allow_html=True)
|