Upload app.py with huggingface_hub
Browse files
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 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
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)
|