nikhilmane007 commited on
Commit
e0fe974
1 Parent(s): 7ebdae9

Update app.py

Browse files

streamlit sample 1

Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,4 +1,8 @@
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
+ text = st.text_input("Paste your text", key="text")
7
+
8
+ st.write(f"No. of words = {len(text)}")