File size: 944 Bytes
509c29f
 
a041458
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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)