Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
86391acf
"vscode:/vscode.git/clone" did not exist on "0ca82156e1799672a9522e539c65f379bdb91a2a"
Commit
86391acf
authored
Jun 30, 2025
by
myhloli
Browse files
fix: prevent server URL assignment for non-client backends in VLM processing
parent
b4cdfedb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mineru/cli/common.py
mineru/cli/common.py
+4
-0
No files found.
mineru/cli/common.py
View file @
86391acf
...
@@ -229,6 +229,8 @@ async def _async_process_vlm(
...
@@ -229,6 +229,8 @@ async def _async_process_vlm(
"""异步处理VLM后端逻辑"""
"""异步处理VLM后端逻辑"""
parse_method
=
"vlm"
parse_method
=
"vlm"
f_draw_span_bbox
=
False
f_draw_span_bbox
=
False
if
not
backend
.
endswith
(
"client"
):
server_url
=
None
for
idx
,
pdf_bytes
in
enumerate
(
pdf_bytes_list
):
for
idx
,
pdf_bytes
in
enumerate
(
pdf_bytes_list
):
pdf_file_name
=
pdf_file_names
[
idx
]
pdf_file_name
=
pdf_file_names
[
idx
]
...
@@ -267,6 +269,8 @@ def _process_vlm(
...
@@ -267,6 +269,8 @@ def _process_vlm(
"""同步处理VLM后端逻辑"""
"""同步处理VLM后端逻辑"""
parse_method
=
"vlm"
parse_method
=
"vlm"
f_draw_span_bbox
=
False
f_draw_span_bbox
=
False
if
not
backend
.
endswith
(
"client"
):
server_url
=
None
for
idx
,
pdf_bytes
in
enumerate
(
pdf_bytes_list
):
for
idx
,
pdf_bytes
in
enumerate
(
pdf_bytes_list
):
pdf_file_name
=
pdf_file_names
[
idx
]
pdf_file_name
=
pdf_file_names
[
idx
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment