Hayden234 commited on
Commit
596f8d8
·
1 Parent(s): 781c342

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+
4
+ # Reuse this data across runs!
5
+ read_and_cache_csv = st.cache(pd.read_csv)
6
+
7
+ BUCKET = "https://streamlit-self-driving.s3-us-west-2.amazonaws.com/"
8
+ data = read_and_cache_csv(BUCKET + "labels.csv.gz", nrows=1000)
9
+ desired_label = st.selectbox('Filter to:', ['car', 'truck'])
10
+ st.write(data[data.label == desired_label])