Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
Update model output handling in test_e2e.py to write JSON format instead of text
myhloli8301fa4c2014
diff --git a/tests/unittest/test_e2e.py b/tests/unittest/test_e2e.pyindex 32b69511..d50e69a2 100644--- a/tests/unittest/test_e2e.py+++ b/tests/unittest/test_e2e.py@@ -154,10 +154,9 @@ def test_vlm_transformers_with_default_config():json.dumps(middle_json, ensure_ascii=False, indent=4),)- model_output = ("\n" + "-" * 50 + "\n").join(infer_result)md_writer.write_string(- f"{pdf_file_name}_model_output.txt",- model_output,+ f"{pdf_file_name}_model.json",+ json.dumps(infer_result, ensure_ascii=False, indent=4),)logger.info(f"local output dir is {local_md_dir}")