Skip to content

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

refactor: improve OCR language dropdown label and add info tooltip for clarity

myhlolib5ba2ba4c9f4
diff --git a/mineru/cli/gradio_app.py b/mineru/cli/gradio_app.py
index 3c95fb5a..bf2365e6 100644
--- a/mineru/cli/gradio_app.py
+++ b/mineru/cli/gradio_app.py
@@ -439,8 +439,8 @@ def main(ctx,
formula_enable = gr.Checkbox(label=get_formula_label(preferred_option), value=True)
table_enable = gr.Checkbox(label='Enable table recognition', value=True)
with gr.Column(visible=False) as ocr_options:
- language = gr.Dropdown(all_lang, label='Language', value='ch')
- is_ocr = gr.Checkbox(label='Force enable OCR', value=False)
+ language = gr.Dropdown(all_lang, label='OCR Language', value='ch')
+ is_ocr = gr.Checkbox(label='Force enable OCR', value=False, info='Enable only if the result is poor. Requires the correct OCR language.')
with gr.Row():
change_bu = gr.Button('Convert')
clear_bu = gr.ClearButton(value='Clear')