File size: 645 Bytes
e5bc0c4
00cc1fe
 
 
 
 
 
 
 
 
 
 
 
 
 
e12fda7
 
 
00cc1fe
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import streamlit as st
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}```")

        st.textarea('test', key='duplicate')
        st.textarea('test', key='duplicate')

    # Wait for 5 seconds
    time.sleep(5)

    # Show completed message
    st.success("File processing completed!")

if __name__ == "__main__":
    main()