Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -171,7 +171,7 @@ class WebSearchAgent:
|
|
171 |
pattern = r'(\b\d+\b)[^\.]*\b(' + '|'.join(re.escape(e) for e in entities) + r')\b'
|
172 |
matches = re.finditer(pattern, text, re.IGNORECASE)
|
173 |
|
174 |
-
counts = [int(match.group(1))
|
175 |
return max(counts) if counts else None
|
176 |
|
177 |
def _extract_date(self, text, analysis):
|
|
|
171 |
pattern = r'(\b\d+\b)[^\.]*\b(' + '|'.join(re.escape(e) for e in entities) + r')\b'
|
172 |
matches = re.finditer(pattern, text, re.IGNORECASE)
|
173 |
|
174 |
+
counts = [int(match.group(1)) for match in matches]
|
175 |
return max(counts) if counts else None
|
176 |
|
177 |
def _extract_date(self, text, analysis):
|