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
37f3e200
Unverified
Commit
37f3e200
authored
Feb 22, 2025
by
Nathan Dahlberg
Committed by
GitHub
Feb 22, 2025
Browse files
fix doc_analyze first page only
parent
c4849ba0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/model/doc_analyze_by_custom_model.py
magic_pdf/model/doc_analyze_by_custom_model.py
+1
-1
No files found.
magic_pdf/model/doc_analyze_by_custom_model.py
View file @
37f3e200
...
...
@@ -158,7 +158,7 @@ def doc_analyze(
table_enable
=
None
,
)
->
InferenceResult
:
end_page_id
=
end_page_id
if
end_page_id
else
len
(
dataset
)
-
1
end_page_id
=
end_page_id
if
end_page_id
is
not
None
else
len
(
dataset
)
-
1
model_manager
=
ModelSingleton
()
custom_model
=
model_manager
.
get_model
(
...
...
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