Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| import time | |
| def main(): | |
| st.title("File Upload Example") | |
| # File upload section | |
| uploaded_file = st.file_uploader("Upload a file") | |
| if uploaded_file is not None: | |
| st.markdown("### Uploaded File Contents:") | |
| file_contents = uploaded_file.read().decode("utf-8") | |
| st.markdown(file_contents) | |
| # Wait for 5 seconds | |
| with st.spinner("Processing..."): | |
| time.sleep(5) | |
| # Show completed message | |
| st.success("Processing completed!") | |
| if __name__ == "__main__": | |
| main() | |
| #Sourced from https://huggingface.co/spaces/awacke1/ChatGPT-Memory-Chat-Story-Generator as part of Data Track - AI Pair Programming session with Aaron C Wacker |