ajitrajasekharan commited on
Commit
9214c84
·
1 Parent(s): b101525

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -3,9 +3,10 @@ from PIL import ImageDraw
3
  import streamlit as st
4
 
5
 
6
- uploaded_file = st.file_uploader("text here", type="file_type")
7
- image = PIL.Image.open(uploaded_file)
8
- st.image(image, caption='Uploaded Image.')
 
9
 
10
 
11
 
 
3
  import streamlit as st
4
 
5
 
6
+ uploaded_file = st.file_uploader("Upload Files",type=['png','jpeg'])
7
+ if uploaded_file is not None:
8
+ file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type,"FileSize":uploaded_file.size}
9
+ st.write(file_details)
10
 
11
 
12