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
zhougaofeng
magic_pdf
Commits
d4ef4349
Commit
d4ef4349
authored
Oct 25, 2024
by
zhougaofeng
Browse files
Update pdf_extract_kit.py
parent
78340ac2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/model/pdf_extract_kit.py
magic_pdf/model/pdf_extract_kit.py
+1
-1
No files found.
magic_pdf/model/pdf_extract_kit.py
View file @
d4ef4349
...
...
@@ -370,7 +370,7 @@ class CustomPEKModel:
ocr_cost
=
round
(
time
.
time
()
-
ocr_start
,
2
)
# logger.info(f"ocr cost: {ocr_cost}")
total_cost
=
total_cost
+
ocr_cost
total_cost
=
round
(
total_cost
+
ocr_cost
,
2
)
index
=
index
+
1
end_page_id
=
end_page_id
+
1
logger
.
info
(
f
'当前解析第【
{
index
}
/
{
end_page_id
}
】页, 耗时:
{
total_cost
}
'
)
...
...
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