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
983aef75
Commit
983aef75
authored
Jun 10, 2025
by
myhloli
Browse files
refactor: clean up code formatting in batch_analyze.py
parent
c3531d72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
mineru/backend/pipeline/batch_analyze.py
mineru/backend/pipeline/batch_analyze.py
+1
-5
No files found.
mineru/backend/pipeline/batch_analyze.py
View file @
983aef75
...
...
@@ -249,16 +249,12 @@ class BatchAnalyze:
_lang
=
table_res_dict
[
'lang'
]
table_model
=
atom_model_manager
.
get_atom_model
(
atom_model_name
=
'table'
,
device
=
'cpu'
,
lang
=
_lang
,
table_sub_model_name
=
'slanet_plus'
)
html_code
,
table_cell_bboxes
,
logic_points
,
elapse
=
table_model
.
predict
(
table_res_dict
[
'table_img'
])
# 判断是否返回正常
if
html_code
:
expected_ending
=
html_code
.
strip
().
endswith
(
'</html>'
)
or
html_code
.
strip
().
endswith
(
'</table>'
)
expected_ending
=
html_code
.
strip
().
endswith
(
'</html>'
)
or
html_code
.
strip
().
endswith
(
'</table>'
)
if
expected_ending
:
table_res_dict
[
'table_res'
][
'html'
]
=
html_code
else
:
...
...
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