Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,6 +50,7 @@ FORBIDDEN_NAMES ={"Judas",
|
|
| 50 |
"Shur",
|
| 51 |
"Pontius Pilate"
|
| 52 |
}
|
|
|
|
| 53 |
def download_file(url: str, dest_path: Path):
|
| 54 |
if dest_path.exists():
|
| 55 |
print(f"{dest_path.name} already exists. Skipping download.")
|
|
@@ -100,7 +101,8 @@ def load_all_ssa_names():
|
|
| 100 |
dfs.append(df)
|
| 101 |
full_df = pd.concat(dfs, ignore_index=True)
|
| 102 |
return full_df
|
| 103 |
-
|
|
|
|
| 104 |
def load_ssa_names(min_year=0, max_year=9999):
|
| 105 |
full_df = load_all_ssa_names()
|
| 106 |
filtered_df = full_df[(full_df["year"] >= min_year) & (full_df["year"] <= max_year)]
|
|
|
|
| 50 |
"Shur",
|
| 51 |
"Pontius Pilate"
|
| 52 |
}
|
| 53 |
+
|
| 54 |
def download_file(url: str, dest_path: Path):
|
| 55 |
if dest_path.exists():
|
| 56 |
print(f"{dest_path.name} already exists. Skipping download.")
|
|
|
|
| 101 |
dfs.append(df)
|
| 102 |
full_df = pd.concat(dfs, ignore_index=True)
|
| 103 |
return full_df
|
| 104 |
+
|
| 105 |
+
@lru_cache(maxsize=1)
|
| 106 |
def load_ssa_names(min_year=0, max_year=9999):
|
| 107 |
full_df = load_all_ssa_names()
|
| 108 |
filtered_df = full_df[(full_df["year"] >= min_year) & (full_df["year"] <= max_year)]
|