awacke1 commited on
Commit
17291fc
·
verified ·
1 Parent(s): 184c4a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,12 +4,12 @@ import os
4
  import glob
5
 
6
  # Cache the loading of specialties for efficiency
7
- @st.cache(allow_output_mutation=True)
8
  def load_specialties(csv_file='Provider-Specialty.csv'):
9
  return pd.read_csv(csv_file)
10
 
11
  # Cache the finding of state files to avoid repeated file system access
12
- @st.cache(allow_output_mutation=True)
13
  def find_state_files():
14
  return [file for file in glob.glob('./*.csv') if len(os.path.basename(file).split('.')[0]) == 2]
15
 
 
4
  import glob
5
 
6
  # Cache the loading of specialties for efficiency
7
+ @st.cache_resource
8
  def load_specialties(csv_file='Provider-Specialty.csv'):
9
  return pd.read_csv(csv_file)
10
 
11
  # Cache the finding of state files to avoid repeated file system access
12
+ @st.cache_resource
13
  def find_state_files():
14
  return [file for file in glob.glob('./*.csv') if len(os.path.basename(file).split('.')[0]) == 2]
15