wt002 commited on
Commit
30f2844
·
verified ·
1 Parent(s): 256b6ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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))) for match in matches]
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):