Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ with st.sidebar:
|
|
21 |
st.title("🖼️ Upload and Display Images")
|
22 |
|
23 |
# Display a placeholder for uploaded image
|
24 |
-
|
|
|
25 |
|
26 |
if uploaded_image:
|
27 |
pil_image = Image.open(uploaded_image)
|
|
|
21 |
st.title("🖼️ Upload and Display Images")
|
22 |
|
23 |
# Display a placeholder for uploaded image
|
24 |
+
st.warning("Please upload an image file!")
|
25 |
+
uploaded_image = st.file_uploader("Upload an Image", type=['TXT', 'PDF'], label_visibility="collapsed")
|
26 |
|
27 |
if uploaded_image:
|
28 |
pil_image = Image.open(uploaded_image)
|