Spaces:
Running
Running
Update updated_word.py
Browse files- updated_word.py +2 -1
updated_word.py
CHANGED
|
@@ -1517,7 +1517,8 @@ def process_hf(json_file, docx_file, output_file):
|
|
| 1517 |
table_replacements = process_tables(doc, flat_json)
|
| 1518 |
paragraph_replacements = process_paragraphs(doc, flat_json)
|
| 1519 |
heading_replacements = process_headings(doc, flat_json)
|
| 1520 |
-
|
|
|
|
| 1521 |
|
| 1522 |
# Save unmatched headers for iterative improvement
|
| 1523 |
if _unmatched_headers:
|
|
|
|
| 1517 |
table_replacements = process_tables(doc, flat_json)
|
| 1518 |
paragraph_replacements = process_paragraphs(doc, flat_json)
|
| 1519 |
heading_replacements = process_headings(doc, flat_json)
|
| 1520 |
+
red_text_para = process_red_text_in_paragraph(paragraph, context_text, flat_json)
|
| 1521 |
+
total_replacements = table_replacements + paragraph_replacements + heading_replacements + red_text_para
|
| 1522 |
|
| 1523 |
# Save unmatched headers for iterative improvement
|
| 1524 |
if _unmatched_headers:
|