mdanish commited on
Commit
d1d57b8
·
1 Parent(s): 1b2c149

try loading image

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -2,5 +2,6 @@ import streamlit as st
2
  from PIL import Image
3
 
4
  file = st.file_uploader('Upload An Image')
5
-
6
- st.write(file)
 
 
2
  from PIL import Image
3
 
4
  file = st.file_uploader('Upload An Image')
5
+ with Image.open(file) as img:
6
+ st.write(file)
7
+ st.write(img.size)