Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
| 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:
|