File size: 1,104 Bytes
f4bb0aa
b98a375
 
 
 
 
 
 
 
 
 
 
 
 
f4bb0aa
 
b98a375
f4bb0aa
 
 
 
7a666e2
 
 
f4bb0aa
b98a375
 
34301dd
 
 
 
 
 
 
 
 
 
 
 
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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)