jdhuka commited on
Commit
6f8fb25
1 Parent(s): 7545702

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -1
app.py CHANGED
@@ -1,3 +1,24 @@
1
  import streamlit as st
 
2
 
3
- st.markdown("Hello World!")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
+ import time
3
 
4
+ def main():
5
+ st.title("File Upload and Display")
6
+
7
+ # File upload section
8
+ uploaded_file = st.file_uploader("Upload a file")
9
+
10
+ if uploaded_file is not None:
11
+ # Read the contents of the file
12
+ file_contents = uploaded_file.read()
13
+
14
+ # Display the contents using st.markdown()
15
+ st.markdown(file_contents)
16
+
17
+ # Wait for 5 seconds
18
+ time.sleep(5)
19
+
20
+ # Show completed message
21
+ st.write("File upload completed!")
22
+
23
+ if __name__ == "__main__":
24
+ main()