Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

fix: simplify layout by removing unnecessary column wrappers in UI components

myhlolib12a866dfe5c
diff --git a/mineru/cli/gradio_app.py b/mineru/cli/gradio_app.py
index be818f7d..6698617e 100644
--- a/mineru/cli/gradio_app.py
+++ b/mineru/cli/gradio_app.py
@@ -182,16 +182,13 @@ def main():
with gr.Row():
file = gr.File(label='Please upload a PDF or image', file_types=['.pdf', '.png', '.jpeg', '.jpg'])
with gr.Row():
- with gr.Column():
- max_pages = gr.Slider(1, 20, 10, step=1, label='Max convert pages')
+ max_pages = gr.Slider(1, 20, 10, step=1, label='Max convert pages')
with gr.Row():
backend = gr.Dropdown(["pipeline", "vlm-transformers", "vlm-sglang-client"], label="Backend", value="pipeline")
with gr.Row(visible=True) as ocr_options:
- with gr.Column():
- language = gr.Dropdown(all_lang, label='Language', value='ch')
+ language = gr.Dropdown(all_lang, label='Language', value='ch')
with gr.Row(visible=False) as client_options:
- with gr.Column():
- url = gr.Textbox(label='Server URL', value='http://localhost:30000', placeholder='http://localhost:30000')
+ url = gr.Textbox(label='Server URL', value='http://localhost:30000', placeholder='http://localhost:30000')
with gr.Row(visible=True) as pipeline_options:
is_ocr = gr.Checkbox(label='Force enable OCR', value=False)
formula_enable = gr.Checkbox(label='Enable formula recognition', value=True)