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: enable table recognition by default- Set table recognition to enabled by default in the UI - Change default layout model to 'doclayout_yolo'- Enable table recognition in the magic-pdf template
myhlolibdfdfea6f857
diff --git a/magic-pdf.template.json b/magic-pdf.template.jsonindex 30f82c88..ba31d96d 100644--- a/magic-pdf.template.json+++ b/magic-pdf.template.json@@ -16,7 +16,7 @@},"table-config": {"model": "rapid_table",- "enable": false,+ "enable": true,"max_time": 400},"llm-aided-config": {diff --git a/projects/gradio_app/app.py b/projects/gradio_app/app.pyindex bc56849b..f274c0ec 100644--- a/projects/gradio_app/app.py+++ b/projects/gradio_app/app.py@@ -192,12 +192,12 @@ if __name__ == '__main__':file = gr.File(label='Please upload a PDF or image', file_types=['.pdf', '.png', '.jpeg', '.jpg'])max_pages = gr.Slider(1, 20, 10, step=1, label='Max convert pages')with gr.Row():- layout_mode = gr.Dropdown(['layoutlmv3', 'doclayout_yolo'], label='Layout model', value='layoutlmv3')+ layout_mode = gr.Dropdown(['layoutlmv3', 'doclayout_yolo'], label='Layout model', value='doclayout_yolo')language = gr.Dropdown(all_lang, label='Language', value='')with gr.Row():formula_enable = gr.Checkbox(label='Enable formula recognition', value=True)is_ocr = gr.Checkbox(label='Force enable OCR', value=False)- table_enable = gr.Checkbox(label='Enable table recognition(test)', value=False)+ table_enable = gr.Checkbox(label='Enable table recognition(test)', value=True)with gr.Row():change_bu = gr.Button('Convert')clear_bu = gr.ClearButton(value='Clear')