Spaces:
Sleeping
Sleeping
Fixed error in cache dir
Browse files- app/app.py +3 -2
app/app.py
CHANGED
@@ -27,8 +27,9 @@ server = app.server
|
|
27 |
|
28 |
df = pd.read_csv(constants.DATA_FILE_PATH, index_col=constants.INDEX_COLS)
|
29 |
|
30 |
-
os.
|
31 |
-
|
|
|
32 |
countries_df = regionmask.defined_regions.natural_earth_v5_0_0.countries_110.to_dataframe()
|
33 |
|
34 |
# Prescriptor list should be in order of least to most change
|
|
|
27 |
|
28 |
df = pd.read_csv(constants.DATA_FILE_PATH, index_col=constants.INDEX_COLS)
|
29 |
|
30 |
+
cache_dir = os.path.join(os.path.dirname(__file__), "../cache_dir")
|
31 |
+
os.makedirs(cache_dir)
|
32 |
+
regionmask.set_options(cache_dir=cache_dir)
|
33 |
countries_df = regionmask.defined_regions.natural_earth_v5_0_0.countries_110.to_dataframe()
|
34 |
|
35 |
# Prescriptor list should be in order of least to most change
|