Skip to content

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

refactor: update Examples component to use label for better i18n support

myhloli1fa4e06974fe
diff --git a/mineru/cli/gradio_app.py b/mineru/cli/gradio_app.py
index cc68aefc..28add8e1 100644
--- a/mineru/cli/gradio_app.py
+++ b/mineru/cli/gradio_app.py
@@ -448,12 +448,12 @@ def main(ctx,
if example_enable:
example_root = os.path.join(os.getcwd(), 'examples')
if os.path.exists(example_root):
- with gr.Accordion(i18n("examples")):
- gr.Examples(
- examples=[os.path.join(example_root, _) for _ in os.listdir(example_root) if
- _.endswith(tuple(suffixes))],
- inputs=input_file
- )
+ gr.Examples(
+ label=i18n("examples"),
+ examples=[os.path.join(example_root, _) for _ in os.listdir(example_root) if
+ _.endswith(tuple(suffixes))],
+ inputs=input_file
+ )
with gr.Column(variant='panel', scale=5):
output_file = gr.File(label=i18n("convert_result"), interactive=False)