Browse Source

qa版本最终阶段保留pdf_intermediate_dict信息

赵小蒙 1 năm trước cách đây
mục cha
commit
1d5d778197
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      magic_pdf/pipeline.py

+ 1 - 1
magic_pdf/pipeline.py

@@ -520,7 +520,7 @@ def ocr_pdf_intermediate_dict_to_markdown_with_para_for_qa(
         )
         # 把无用的信息清空
         jso["doc_layout_result"] = ""
-        jso["pdf_intermediate_dict"] = ""
+        jso["pdf_intermediate_dict"] = pdf_intermediate_dict
         jso["pdf_meta"] = ""
     except Exception as e:
         jso = exception_handler(jso, e)