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
9c8d995e
Unverified
Commit
9c8d995e
authored
Nov 21, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Nov 21, 2024
Browse files
Merge pull request #1045 from myhloli/dev
fix(tools): handle empty language string in common.py
parents
3b9b95c3
20ed0cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
magic_pdf/tools/common.py
magic_pdf/tools/common.py
+3
-0
No files found.
magic_pdf/tools/common.py
View file @
9c8d995e
...
@@ -94,6 +94,9 @@ def do_parse(
...
@@ -94,6 +94,9 @@ def do_parse(
f_draw_model_bbox
=
True
f_draw_model_bbox
=
True
f_draw_line_sort_bbox
=
True
f_draw_line_sort_bbox
=
True
if
lang
==
""
:
lang
=
None
pdf_bytes
=
convert_pdf_bytes_to_bytes_by_pymupdf
(
pdf_bytes
,
start_page_id
,
end_page_id
)
pdf_bytes
=
convert_pdf_bytes_to_bytes_by_pymupdf
(
pdf_bytes
,
start_page_id
,
end_page_id
)
orig_model_list
=
copy
.
deepcopy
(
model_list
)
orig_model_list
=
copy
.
deepcopy
(
model_list
)
...
...
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