pstojako commited on
Commit
ad6d3e2
·
1 Parent(s): 2c891db

Update app.py

Browse files

test file made with ChatGPT

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("Simple Streamlit Program")
6
+
7
+ # Wait for 5 seconds
8
+ with st.spinner("Waiting for 5 seconds..."):
9
+ time.sleep(5)
10
+
11
+ # Show completed message
12
+ st.success("Task completed!")
13
+
14
+ # File upload feature
15
+ st.header("File Upload")
16
+ uploaded_file = st.file_uploader("Choose a file")
17
+
18
+ if uploaded_file is not None:
19
+ file_contents = uploaded_file.read()
20
+ st.markdown("### File Contents:")
21
+ st.markdown(f"```{file_contents.decode()}```")
22
+
23
+ if __name__ == "__main__":
24
+ main()