simple app
To upload files, please first save the app
import streamlit as st
st.title('Simple Streamlit App')
st.write('Welcome to this simple Streamlit application!')
st.write('This app demonstrates some basic Streamlit features:')
# Add a slider
age = st.slider('How old are you?', 0, 120, 25)
st.write("You are", age, "years old")
# Add a text input
name = st.text_input('What is your name?', 'Type your name here...')
if name != 'Type your name here...':
st.write(f'Hello {name}!')
# Add a checkbox
if st.checkbox('Show additional information'):
st.write('This is some additional information that appears when the checkbox is selected.')
# Add a selectbox
option = st.selectbox(
'What is your favorite color?',
['Red', 'Green', 'Blue', 'Yellow', 'Purple']
)
st.write(f'Your favorite color is {option}')
# Add a button
if st.button('Click me!'):
st.balloons()
st.write('Button clicked! Celebrating with balloons!')
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?