TheLastAI / app.py
circulartext's picture
Update app.py
b98a375 verified
raw
history blame
977 Bytes
import streamlit as st
import time
# Set page background color to black
st.markdown(
"""
<style>
.reportview-container {
background: black;
}
</style>
""",
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)
# Main content area
st.write("This is a Streamlit app where the text appears as if it's being typed like an A.I.")
text_to_type = st.text_area("Type something here:", value="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.")
if st.button("Type the text"):
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("")