circulartext commited on
Commit
7a666e2
·
verified ·
1 Parent(s): b98a375

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -19,14 +19,15 @@ st.title("The Last A.I")
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
 
 
 
 
 
 
 
 
19
  # Image
20
  st.image("key1.jpg", caption="Your Image Caption", use_column_width=True)
21
 
22
+ # Text to type
23
+ 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."
24
+
25
  # Main content area
26
  st.write("This is a Streamlit app where the text appears as if it's being typed like an A.I.")
 
 
 
 
 
 
 
 
27
 
28
+ # Type the text automatically
29
+ words = text_to_type.split()
30
+ for word in words:
31
+ st.write(word, end=' ', flush=True)
32
+ time.sleep(0.3) # Adjust typing speed here
33
+ st.write("")