Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -235,7 +235,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 235 |
text = "[Discography text content from previous observation]" # Replace with actual text
|
| 236 |
albums_2000_2009 = []
|
| 237 |
# This is a simplified regex example; actual parsing might be more complex depending on text format
|
| 238 |
-
pattern = r"\((\d{4})\
|
| 239 |
for match in re.finditer(pattern, text):
|
| 240 |
year = int(match.group(1))
|
| 241 |
if 2000 <= year <= 2009:
|
|
|
|
| 235 |
text = "[Discography text content from previous observation]" # Replace with actual text
|
| 236 |
albums_2000_2009 = []
|
| 237 |
# This is a simplified regex example; actual parsing might be more complex depending on text format
|
| 238 |
+
pattern = r"\((\d{{4}})\s*(.*?)(?:\[|\n|$)"
|
| 239 |
for match in re.finditer(pattern, text):
|
| 240 |
year = int(match.group(1))
|
| 241 |
if 2000 <= year <= 2009:
|