peder commited on
Commit
45d07a3
·
1 Parent(s): f55a209
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,4 +1,10 @@
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
+
4
+ def hello():
5
+ x = st.slider('Select a value')
6
+ st.write(x, 'squared is', x * x)
7
+
8
+
9
+ if __name__ == '__main__':
10
+ hello()