mdanish commited on
Commit
5a003d2
·
verified ·
1 Parent(s): d1d57b8

Upload app.py with huggingface_hub

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