circulartext commited on
Commit
b98a375
1 Parent(s): 0411e19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -2
app.py CHANGED
@@ -1,10 +1,32 @@
1
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  # Title of the app
4
- st.title("Blank Streamlit App")
5
 
6
  # Image
7
  st.image("key1.jpg", caption="Your Image Caption", use_column_width=True)
8
 
9
  # Main content area
10
- st.write("This is a blank Streamlit app. You can start building your app from here.")
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
+ import time
3
+
4
+ # Set page background color to black
5
+ st.markdown(
6
+ """
7
+ <style>
8
+ .reportview-container {
9
+ background: black;
10
+ }
11
+ </style>
12
+ """,
13
+ unsafe_allow_html=True
14
+ )
15
 
16
  # Title of the app
17
+ st.title("The Last A.I")
18
 
19
  # Image
20
  st.image("key1.jpg", caption="Your Image Caption", use_column_width=True)
21
 
22
  # Main content area
23
+ st.write("This is a Streamlit app where the text appears as if it's being typed like an A.I.")
24
+ 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.")
25
+
26
+ if st.button("Type the text"):
27
+ words = text_to_type.split()
28
+ for word in words:
29
+ st.write(word, end=' ', flush=True)
30
+ time.sleep(0.3) # Adjust typing speed here
31
+ st.write("")
32
+