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: add support for Gradio version class in header rendering and enhance external link styling
myhloli2c9b87e15218
diff --git a/mineru/cli/gradio_app.py b/mineru/cli/gradio_app.pyindex 14b64f16..2ae59072 100644--- a/mineru/cli/gradio_app.py+++ b/mineru/cli/gradio_app.py@@ -1831,6 +1831,7 @@ HEADER_I18N_PLACEHOLDERS = {"{{HEADER_HOMEPAGE_LINK}}": "header_homepage_link","{{HEADER_DOWNLOAD_LINK}}": "header_download_link",}+HEADER_GRADIO_VERSION_CLASS_PLACEHOLDER = "{{HEADER_GRADIO_VERSION_CLASS}}"def render_header_html(i18n):@@ -1841,6 +1842,10 @@ def render_header_html(i18n):placeholder,html_lib.escape(translate_ui(i18n, translation_key)),)+ rendered_header = rendered_header.replace(+ HEADER_GRADIO_VERSION_CLASS_PLACEHOLDER,+ "mineru-gradio6-header" if IS_GRADIO_6 else "",+ )return rendered_headerother_lang = [diff --git a/mineru/resources/header.html b/mineru/resources/header.htmlindex 7e5acd47..890169cd 100644--- a/mineru/resources/header.html+++ b/mineru/resources/header.html@@ -26,10 +26,19 @@a {text-decoration: none;}+ .mineru-gradio6-header .external-link {+ padding-left: 16px !important;+ padding-right: 16px !important;+ text-decoration: none !important;+ }+ .mineru-gradio6-header .external-link *,+ .mineru-gradio6-header .external-link:hover {+ text-decoration: none !important;+ }</style></head><body>- <div style="+ <div class="{{HEADER_GRADIO_VERSION_CLASS}}" style="display: flex;flex-direction: column;justify-content: center;