whitphx HF staff commited on
Commit
c779e75
1 Parent(s): abf597c

Replace cache_resource with cache_data

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.cache_resource
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()