Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
st.title('First site')
|
| 4 |
+
st.header('This is a header')
|
| 5 |
+
|
| 6 |
+
hobby = st.selectbox("Hobby",['Writing','Badminton','Bouldering'])
|
| 7 |
+
|
| 8 |
+
if st.button("Click me for a compliment"):
|
| 9 |
+
st.write("Wow, "+hobby.lower()+" is a wonderful hobby to have")
|