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
feat(gradio_app): add examples accordion to the PDF conversion interface
myhlolibb373980e27a
diff --git a/projects/gradio_app/app.py b/projects/gradio_app/app.pyindex feb2aa42..aa576ecb 100644--- a/projects/gradio_app/app.py+++ b/projects/gradio_app/app.py@@ -150,6 +150,13 @@ if __name__ == "__main__":change_bu = gr.Button("Convert")clear_bu = gr.ClearButton([pdf_show], value="Clear")pdf_show = PDF(label="Please upload pdf", interactive=True, height=800)+ with gr.Accordion("Examples:"):+ example_root = os.path.join(os.path.dirname(__file__), "examples")+ gr.Examples(+ examples=[os.path.join(example_root, _) for _ in os.listdir(example_root) if+ _.endswith("pdf")],+ inputs=pdf_show,+ )with gr.Column(variant='panel', scale=5):output_file = gr.File(label="convert result", interactive=False)diff --git a/projects/gradio_app/examples/academic_paper_formula.pdf b/projects/gradio_app/examples/academic_paper_formula.pdfnew file mode 100755index 00000000..9515bdfeBinary files /dev/null and b/projects/gradio_app/examples/academic_paper_formula.pdf differdiff --git a/projects/gradio_app/examples/academic_paper_img_formula.pdf b/projects/gradio_app/examples/academic_paper_img_formula.pdfnew file mode 100755index 00000000..319cb873Binary files /dev/null and b/projects/gradio_app/examples/academic_paper_img_formula.pdf differdiff --git a/projects/gradio_app/examples/garbled_formula.pdf b/projects/gradio_app/examples/garbled_formula.pdfnew file mode 100755index 00000000..5a4d5c6eBinary files /dev/null and b/projects/gradio_app/examples/garbled_formula.pdf differdiff --git a/projects/gradio_app/examples/garbled_formula2.pdf b/projects/gradio_app/examples/garbled_formula2.pdfnew file mode 100755index 00000000..cec3a51bBinary files /dev/null and b/projects/gradio_app/examples/garbled_formula2.pdf differdiff --git a/projects/gradio_app/examples/garbled_img_formula.pdf b/projects/gradio_app/examples/garbled_img_formula.pdfnew file mode 100755index 00000000..7f1cbf26Binary files /dev/null and b/projects/gradio_app/examples/garbled_img_formula.pdf differdiff --git a/projects/gradio_app/examples/scanned.pdf b/projects/gradio_app/examples/scanned.pdfnew file mode 100755index 00000000..f35e53ddBinary files /dev/null and b/projects/gradio_app/examples/scanned.pdf differ