some app
Drop files here
or click to upload
import streamlit as st
import pandas as pd
import numpy as np
st.title('Simple Streamlit App')
st.header('Welcome to Streamlit!')
st.write('This is a basic Streamlit application.')
# Create some sample data
data = pd.DataFrame({
'x': np.random.randn(100),
'y': np.random.randn(100)
})
# Display a chart
st.subheader('Sample Chart')
st.line_chart(data)
# Display a table
st.subheader('Sample Table')
st.table(data.head())
# Add an interactive widget
st.subheader('Interactive Elements')
name = st.text_input('Enter your name')
if name:
st.write(f'Hello, {name}!')
# Slider widget
age = st.slider('Select your age', 0, 100, 25)
st.write(f'You selected: {age}')
# Button widget
if st.button('Click me'):
st.balloons()
st.write('Button clicked!')
# Sidebar
st.sidebar.header('Sidebar')
st.sidebar.write('This is a sidebar with options.')
option = st.sidebar.selectbox(
'Choose an option',
['Option 1', 'Option 2', 'Option 3']
)
st.sidebar.write(f'You selected: {option}')
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?