Spaces:
Runtime error
Runtime error
import PIL | |
from PIL import ImageDraw | |
import streamlit as st | |
def load_image(image_file): | |
img = PIL.Image.open(image_file) | |
return img | |
uploaded_file = st.file_uploader("Upload Files",type=['png','jpeg']) | |
if uploaded_file is not None: | |
file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type,"FileSize":uploaded_file.size} | |
st.write(file_details) | |
st.image(load_image(uploaded_file),width=250) | |