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
fix s3_file_path get logic
赵小蒙29d2be623b8f
diff --git a/magic_pdf/cli/magicpdf.py b/magic_pdf/cli/magicpdf.pyindex 65ee1dbb..f957c9fb 100644--- a/magic_pdf/cli/magicpdf.py+++ b/magic_pdf/cli/magicpdf.py@@ -135,7 +135,9 @@ def json_command(json, method):)jso = json_parse.loads(read_s3_path(json).decode("utf-8"))- s3_file_path = jso["file_location"]+ s3_file_path = jso.get("file_location")+ if s3_file_path is None:+ s3_file_path = jso.get("path")pdf_file_name = Path(s3_file_path).stempdf_data = read_s3_path(s3_file_path)local_image_dir, local_md_dir = prepare_env(pdf_file_name, method)