Spaces:
Sleeping
Sleeping
Upload app.py
Browse files- metadata_search/app.py +1 -1
metadata_search/app.py
CHANGED
|
@@ -135,7 +135,7 @@ def test_summary():
|
|
| 135 |
text = load_summary(file_name)
|
| 136 |
|
| 137 |
# If normal resolution fails, expose the exact cloud lookup attempt.
|
| 138 |
-
year_match = re.search(r"\
|
| 139 |
year = year_match.group(1) if year_match else None
|
| 140 |
repo_id = os.getenv(
|
| 141 |
"WATERSCOPE_DATASET_REPO",
|
|
|
|
| 135 |
text = load_summary(file_name)
|
| 136 |
|
| 137 |
# If normal resolution fails, expose the exact cloud lookup attempt.
|
| 138 |
+
year_match = re.search(r"\s-\s(\d{4})\s-\s", file_name)
|
| 139 |
year = year_match.group(1) if year_match else None
|
| 140 |
repo_id = os.getenv(
|
| 141 |
"WATERSCOPE_DATASET_REPO",
|