Replace cache_resource with cache_data
#6
by
whitphx
HF staff
- opened
app.py
CHANGED
@@ -8,7 +8,7 @@ DATE_COLUMN = 'date/time'
|
|
8 |
DATA_URL = ('https://s3-us-west-2.amazonaws.com/'
|
9 |
'streamlit-demo-data/uber-raw-data-sep14.csv.gz')
|
10 |
|
11 |
-
@st.
|
12 |
def load_data(nrows):
|
13 |
data = pd.read_csv(DATA_URL, nrows=nrows)
|
14 |
lowercase = lambda x: str(x).lower()
|
|
|
8 |
DATA_URL = ('https://s3-us-west-2.amazonaws.com/'
|
9 |
'streamlit-demo-data/uber-raw-data-sep14.csv.gz')
|
10 |
|
11 |
+
@st.cache_data
|
12 |
def load_data(nrows):
|
13 |
data = pd.read_csv(DATA_URL, nrows=nrows)
|
14 |
lowercase = lambda x: str(x).lower()
|