Skip to content

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

fix: add copy button to Markdown components in gradio_app.py

myhlolidfa02df68fb3
diff --git a/mineru/cli/gradio_app.py b/mineru/cli/gradio_app.py
index 3c8afc82..2f70d51e 100644
--- a/mineru/cli/gradio_app.py
+++ b/mineru/cli/gradio_app.py
@@ -438,11 +438,11 @@ def main(ctx,
output_file = gr.File(label='convert result', interactive=False)
with gr.Tabs():
with gr.Tab('Markdown rendering'):
- md = gr.Markdown(label='Markdown rendering', height=1100,
+ md = gr.Markdown(label='Markdown rendering', height=1100, show_copy_button=True,
latex_delimiters=latex_delimiters,
line_breaks=True)
with gr.Tab('Markdown text'):
- md_text = gr.TextArea(lines=45,)
+ md_text = gr.TextArea(lines=45, show_copy_button=True)
# 添加事件处理
backend.change(