Commit 4e7511fb authored by icecraft's avatar icecraft
Browse files

fix: dup classify pdf type

parent 168a1115
...@@ -123,6 +123,9 @@ def do_parse( ...@@ -123,6 +123,9 @@ def do_parse(
formula_enable=formula_enable, formula_enable=formula_enable,
table_enable=table_enable, table_enable=table_enable,
) )
pipe_result = infer_result.pipe_txt_mode(
image_writer, debug_mode=True, lang=lang
)
else: else:
infer_result = ds.apply( infer_result = ds.apply(
doc_analyze, doc_analyze,
...@@ -132,7 +135,7 @@ def do_parse( ...@@ -132,7 +135,7 @@ def do_parse(
formula_enable=formula_enable, formula_enable=formula_enable,
table_enable=table_enable, table_enable=table_enable,
) )
pipe_result = infer_result.pipe_auto_mode( pipe_result = infer_result.pipe_ocr_mode(
image_writer, debug_mode=True, lang=lang image_writer, debug_mode=True, lang=lang
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment