Spaces:
Build error
Build error
eduardo-meik
commited on
Commit
·
87d4d83
1
Parent(s):
17ee792
update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,14 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
# Using object notation
|
4 |
+
add_selectbox = st.sidebar.selectbox(
|
5 |
+
"How would you like to be contacted?",
|
6 |
+
("Email", "Home phone", "Mobile phone")
|
7 |
+
)
|
8 |
+
|
9 |
+
# Using "with" notation
|
10 |
+
with st.sidebar:
|
11 |
+
add_radio = st.radio(
|
12 |
+
"Choose a shipping method",
|
13 |
+
("Standard (5-15 days)", "Express (2-5 days)")
|
14 |
+
)
|