Spaces:
Runtime error
Runtime error
nikhilmane007
commited on
Commit
•
e0fe974
1
Parent(s):
7ebdae9
Update app.py
Browse filesstreamlit sample 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)}")
|