Spaces:
Sleeping
Sleeping
File size: 430 Bytes
f0ec228 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import streamlit as st
# Set the title of the app
st.title("Basic Streamlit App")
# Display a header
st.header("Welcome to Streamlit!")
# Add a text input widget
user_input = st.text_input("Enter your name:")
# Display the user's input
if user_input:
st.write(f"Hello, {user_input}!")
# Add a slider widget
age = st.slider("Select your age:", 0, 100, 25)
# Display the selected age
st.write(f"You are {age} years old.")
|