generated from streamlit/app-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstreamlit_app.py
More file actions
35 lines (23 loc) · 778 Bytes
/
streamlit_app.py
File metadata and controls
35 lines (23 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import streamlit as st
import pandas as pd
from numpy.random import default_rng as rng
st.title('🎈 App Name')
st.write('Hello world!')
with st.sidebar:
st.header("About app")
st.write("This is my first app!")
st.header("Welcome to My Streamlit App", divider="rainbow")
# Add text
st.markdown("This is a simple app to demonstrate Streamlit features.")
st.subheader("st.columns")
col1, col2 = st.columns(2)
with col1:
# Add a slider
x = st.slider("Choose a value", 0, 100, 50)
with col2:
# Display the selected value: descriptive text is optional
st.write("The value of :blue[***x***] is:", x)
# Data viz
st.subheader("Random Data Visualization")
df = pd.DataFrame(rng(0).standard_normal((20, 3)), columns=["a", "b", "c"])
st.area_chart(df)