jnguy109 commited on
Commit
0f78c32
1 Parent(s): d8865d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,3 +1,3 @@
1
- import streamlit as st
2
 
3
- st.markdown("Hello World!")
 
 
 
1
 
2
+ import streamlit as st
3
+ import time def main(): st.title("File Upload and Display") # File upload uploaded_file = st.file_uploader("Upload a file") if uploaded_file is not None: # Display file contents using st.markdown() file_contents = uploaded_file.read().decode("utf-8") st.markdown("### File Contents:") st.markdown(f"```{file_contents}```") # Wait for 5 seconds time.sleep(5) # Show completed message st.success("File processing completed!") if __name__ == "__main__": main()