an simple website that can take user input and shows the output
Drop files here
or click to upload
import streamlit as st
st.title("Simple User Input App")
# Text input
user_text = st.text_input("Enter some text:")
# Number input
user_number = st.number_input("Enter a number:", value=0)
# Select box
options = ["Option 1", "Option 2", "Option 3"]
user_selection = st.selectbox("Choose an option:", options)
# Display results
if user_text:
st.write("You entered:", user_text)
st.write("Your number is:", user_number)
st.write("You selected:", user_selection)
# Add a button
if st.button("Click me!"):
st.write("Button was clicked!")
# Add a slider
age = st.slider("Select your age:", 0, 100, 25)
st.write("Your age is:", age)
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?