danilommarano commited on
Commit
dc789e9
·
1 Parent(s): f072b22

Streamlit text area

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -1,4 +1,15 @@
1
  import streamlit as st
2
 
3
  x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
  x = st.slider('Select a value')
4
+ st.write(x, 'squared is', x * x)
5
+
6
+ txt = st.text_area(
7
+ "Text to analyze",
8
+ "It was the best of times, it was the worst of times, it was the age of "
9
+ "wisdom, it was the age of foolishness, it was the epoch of belief, it "
10
+ "was the epoch of incredulity, it was the season of Light, it was the "
11
+ "season of Darkness, it was the spring of hope, it was the winter of "
12
+ "despair, (...)",
13
+ )
14
+
15
+ st.write(f'You wrote {len(txt)} characters.')