Skip to content

Commit c0a465d

Browse files
committed
Report Redaction: Fix int values in llm output
1 parent d4d3fdd commit c0a465d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/llm_processing/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def convert_personal_info_list(personal_info_list: str) -> list:
4141
from collections import OrderedDict
4242

4343
# Clean the input string
44-
personal_info_list = personal_info_list.replace("nan,", "").replace("'',", "").replace("nan", '')
44+
personal_info_list = str(personal_info_list).replace("nan,", "").replace("'',", "").replace("nan", '')
4545

4646
try:
4747
# Try to convert to list using ast.literal_eval

0 commit comments

Comments
 (0)