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
refactor: update header.html to include support prompt and change file opening to utf-8 encoding
myhlolic163d0d7bd3e
diff --git a/mineru/cli/gradio_app.py b/mineru/cli/gradio_app.pyindex 7332ce1d..cc68aefc 100644--- a/mineru/cli/gradio_app.py+++ b/mineru/cli/gradio_app.py@@ -138,7 +138,7 @@ latex_delimiters_type_b = [latex_delimiters_type_all = latex_delimiters_type_a + latex_delimiters_type_bheader_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'resources', 'header.html')-with open(header_path, 'r') as header_file:+with open(header_path, mode='r', encoding='utf-8') as header_file:header = header_file.read()other_lang = [diff --git a/mineru/resources/header.html b/mineru/resources/header.htmlindex 3413aee5..ddb76c20 100644--- a/mineru/resources/header.html+++ b/mineru/resources/header.html@@ -67,6 +67,12 @@opacity: 0.8;">A one-stop, open-source, high-quality data extraction tool that supports converting PDF to Markdown and JSON.<br>+ <span style="display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;">+ If you found our project helpful, please give us a ⭐️ to support us!+ <a href="https://github.com/opendatalab/MinerU" style="display: inline-flex; align-items: center;">+ <img src="https://img.shields.io/github/stars/opendatalab/MinerU.svg" alt="stars" style="vertical-align: middle;">+ </a>+ </span></p><style>.link-block {