import streamlit as st import time # Set page background color to black st.markdown( """ """, unsafe_allow_html=True ) # Title of the app st.title("The Last A.I") # Image st.image("key1.jpg", caption="Your Image Caption", use_column_width=True) # Text to type text_to_type = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi." # Main content area st.write("This is a Streamlit app where the text appears as if it's being typed like an A.I.") # Type the text automatically words = text_to_type.split() for word in words: st.write(word, end=' ', flush=True) time.sleep(0.3) # Adjust typing speed here st.write("")