eagle0504 commited on
Commit
6a12942
1 Parent(s): 0758797

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- uploaded_image = st.file_uploader("Upload an Image", label_visibility="collapsed")
 
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)