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
f1bab85e
Commit
f1bab85e
authored
Jun 30, 2025
by
myhloli
Browse files
fix: remove unnecessary condition for backend client check
parent
c29327fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
mineru/cli/gradio_app.py
mineru/cli/gradio_app.py
+1
-2
No files found.
mineru/cli/gradio_app.py
View file @
f1bab85e
...
@@ -28,8 +28,7 @@ async def parse_pdf(doc_path, output_dir, end_page_id, is_ocr, formula_enable, t
...
@@ -28,8 +28,7 @@ async def parse_pdf(doc_path, output_dir, end_page_id, is_ocr, formula_enable, t
if
backend
.
startswith
(
"vlm"
):
if
backend
.
startswith
(
"vlm"
):
parse_method
=
"vlm"
parse_method
=
"vlm"
if
not
backend
.
endswith
(
"client"
):
url
=
None
local_image_dir
,
local_md_dir
=
prepare_env
(
output_dir
,
file_name
,
parse_method
)
local_image_dir
,
local_md_dir
=
prepare_env
(
output_dir
,
file_name
,
parse_method
)
await
aio_do_parse
(
await
aio_do_parse
(
output_dir
=
output_dir
,
output_dir
=
output_dir
,
...
...
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