olcapone commited on
Commit
ff20172
·
verified ·
1 Parent(s): e222e64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def format_final_answer(q: str, raw: str) -> str:
43
  break
44
 
45
  # If the question implies a numeric answer, force a bare number
46
- ql = question.lower()
47
  if any(k in ql for k in ["how many", "number", "highest number", "count", "total", "included"]):
48
  n = _extract_bare_number(text)
49
  if n is not None:
 
43
  break
44
 
45
  # If the question implies a numeric answer, force a bare number
46
+ ql = q.lower()
47
  if any(k in ql for k in ["how many", "number", "highest number", "count", "total", "included"]):
48
  n = _extract_bare_number(text)
49
  if n is not None: