PierreCugnet commited on
Commit
8bdae34
1 Parent(s): 1a8d858

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,6 +1,9 @@
1
  import streamlit as st
2
  import os
 
3
  uploaded_file = st.file_uploader("Upload Files",type=['png','jpeg'])
4
  if uploaded_file is not None:
5
  file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type,"FileSize":uploaded_file.size}
6
- st.write(file_details)
 
 
 
1
  import streamlit as st
2
  import os
3
+ import PIL
4
  uploaded_file = st.file_uploader("Upload Files",type=['png','jpeg'])
5
  if uploaded_file is not None:
6
  file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type,"FileSize":uploaded_file.size}
7
+ st.write(file_details)
8
+ PIL.show(uploaded_file)
9
+