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