|
|
import streamlit as st |
|
|
|
|
|
|
|
|
st.write("Hello World!") |
|
|
|
|
|
|
|
|
st.image("https://streamlit.io/images/brand/streamlit-logo-secondary-colormark-darktext.png") |
|
|
|
|
|
|
|
|
if st.button("Say hello"): |
|
|
st.write("Hello!") |
|
|
|
|
|
|
|
|
slider = st.slider("Pick a number") |
|
|
st.write(slider) |
|
|
|
|
|
|
|
|
checkbox = st.checkbox("I agree") |
|
|
st.write(checkbox) |
|
|
|
|
|
|
|
|
radio = st.radio("Pick one", ["Option 1", "Option 2", "Option 3"]) |
|
|
st.write(radio) |
|
|
|
|
|
|
|
|
selectbox = st.selectbox("Pick one", ["Option 1", "Option 2", "Option 3"]) |
|
|
st.write(selectbox) |
|
|
|
|
|
|
|
|
multiselect = st.multiselect("Pick one or more", ["Option 1", "Option 2", "Option 3"]) |
|
|
st.write(multiselect) |
|
|
|
|
|
|
|
|
text_input = st.text_input("Enter some text") |
|
|
st.write(text_input) |
|
|
|
|
|
|
|
|
number_input = st.number_input("Enter a number") |
|
|
st.write(number_input) |
|
|
|