Update app.py
Browse files
app.py
CHANGED
@@ -4,12 +4,12 @@ import os
|
|
4 |
import glob
|
5 |
|
6 |
# Cache the loading of specialties for efficiency
|
7 |
-
@st.
|
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.
|
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 |
|