streamlit_test / app.py
grimzaeye's picture
add requirement
68f3c75
import streamlit as st
# import wget
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)
# wget.download("https://github.com/chdaesung/sogang/raw/main/2024/genAI/P9-streamlit/autoai.mp4")
# wget.download("https://github.com/chdaesung/sogang/raw/main/2024/genAI/P9-streamlit/news.mp3")
# wget.download("https://raw.githubusercontent.com/chdaesung/sogang/main/2024/genAI/P9-streamlit/Streamlit-logo-primary-colormark-darktext.png")
# main.py์— ๋‹ค์Œ ์ฝ”๋“œ๋ฅผ ์ž…๋ ฅํ•˜๊ณ  ์ €์žฅํ•˜์‹ญ์‹œ์˜ค.
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.write("์ŠคํŠธ๋ฆผ๋ฆฟ์„ ํ…Œ์ŠคํŠธ ์ค‘์ž…๋‹ˆ๋‹ค.")
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')
st.image("/content/Streamlit-logo-primary-colormark-darktext.png")
st.audio("/content/news.mp3")
st.video("/content/autoai.mp4")