Test / app.py
YenJung's picture
Update app.py
65064a3
import streamlit as st
st.title ("this is the app title")
st.header("this is the markdown")
st.markdown("this is the header")
st.subheader("this is the subheader")
st.caption("this is the caption")
st.code("x=2021")
st.latex(r''' a+a r^1+a r^2+a r^3 ''')
st.checkbox('yes')
st.button('Click')
st.radio('Pick your gender',['Male','Female'])
st.selectbox('Pick your gender',['Male','Female'])
st.multiselect('choose a planet',['Jupiter', 'Mars', 'neptune'])
st.select_slider('Pick a mark', ['Bad', 'Good', 'Excellent'])
st.slider('Pick a number', 0,50)
st.number_input('Pick a number', 0,10)
st.text_input('Email address')
st.date_input('Travelling date')
st.time_input('School time')
st.text_area('Description')
st.file_uploader('Upload a photo')
st.color_picker('Choose your favorite color')
import time
with st.spinner('Wait for it...'):
for n in range(1, 11):
st.progress(n*10)
st.balloons()
time.sleep(1)
import pandas as pd
import numpy as np
df= pd.DataFrame(np.random.randn(10, 2), columns=['x', 'y'])
st.line_chart(df)
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)