radames whitphx HF staff commited on
Commit
6f4229d
1 Parent(s): abf597c

Replace cache_resource with cache_data (#6)

Browse files

- Replace cache_resource with cache_data (c779e754510887b7754f348236c12f5632f3803f)


Co-authored-by: Yuichiro Tachibana <[email protected]>

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()