sebastian108 commited on
Commit
e82e8cc
·
1 Parent(s): debe911

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -1,3 +1,18 @@
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("Streamlit Example")
6
+
7
+ st.write("Waiting for 5 seconds...")
8
+ time.sleep(5)
9
+ st.write("Completed!")
10
+
11
+ uploaded_file = st.file_uploader("Upload a file")
12
+
13
+ if uploaded_file is not None:
14
+ content = uploaded_file.read().decode("utf-8")
15
+ st.markdown(content)
16
+
17
+ if __name__ == "__main__":
18
+ main()