TheLastAI / app.py
circulartext's picture
Update app.py
34301dd verified
raw
history blame
1.1 kB
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)
# 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.")
# Create a placeholder for the typed text
placeholder = st.empty()
# Type the text character by character with a typing animation effect
typed_text = ""
for char in text_to_type:
typed_text += char
placeholder.code(typed_text, language="text")
time.sleep(0.05) # Adjust typing speed here
# Add a delay after typing is complete
time.sleep(1)