Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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])
|