Эх сурвалжийг харах

Merge pull request #3515 from opendatalab/master

master->dev
Xiaomeng Zhao 1 сар өмнө
parent
commit
5f3f35c009

+ 1 - 1
docs/en/usage/quick_usage.md

@@ -44,7 +44,7 @@ If you need to adjust parsing options through custom parameters, you can also ch
   >Access `http://127.0.0.1:8000/docs` in your browser to view the API documentation.
 - Start Gradio WebUI visual frontend:
   ```bash
-  # Using pipeline/vlm-transformers/vlm-vllm-client backends
+  # Using pipeline/vlm-transformers/vlm-http-client backends
   mineru-gradio --server-name 0.0.0.0 --server-port 7860
   # Or using vlm-vllm-engine/pipeline backends (requires vllm environment)
   mineru-gradio --server-name 0.0.0.0 --server-port 7860 --enable-vllm-engine true

+ 1 - 3
mineru/cli/gradio_app.py

@@ -275,9 +275,7 @@ def main(ctx,
             print("vLLM engine init successfully.")
         except Exception as e:
             logger.exception(e)
-    suffixes = []
-    for suffix in pdf_suffixes + image_suffixes:
-        suffixes.append(f".{suffix}")
+    suffixes = [f".{suffix}" for suffix in pdf_suffixes + image_suffixes]
     with gr.Blocks() as demo:
         gr.HTML(header)
         with gr.Row():

+ 1 - 1
mineru/version.py

@@ -1 +1 @@
-__version__ = "2.2.2"
+__version__ = "2.5.0"

+ 1 - 1
pyproject.toml

@@ -39,7 +39,7 @@ dependencies = [
     "openai>=1.70.0,<2",
     "beautifulsoup4>=4.13.5,<5",
     "magika>=0.6.2,<0.7.0",
-    "mineru_vl_utils",
+    "mineru_vl_utils>=0.1.6,<1.0.0",
 ]
 
 [project.optional-dependencies]