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
5d5d72b1
"examples/trials/vscode:/vscode.git/clone" did not exist on "f7d69d8f0404c14cfed853c738fc99cc1f2d1672"
Commit
5d5d72b1
authored
Oct 25, 2024
by
zhougaofeng
Browse files
Update common_parse.py
parent
63971f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/parse/common_parse.py
magic_pdf/parse/common_parse.py
+1
-1
No files found.
magic_pdf/parse/common_parse.py
View file @
5d5d72b1
...
@@ -45,7 +45,7 @@ def process_file(file_path, pdf_ocr, excel_ocr, output_dir):
...
@@ -45,7 +45,7 @@ def process_file(file_path, pdf_ocr, excel_ocr, output_dir):
res
=
excel_ocr
.
parse
(
file_path
,
output_dir
)
res
=
excel_ocr
.
parse
(
file_path
,
output_dir
)
end
=
time
.
time
()
end
=
time
.
time
()
if
res
:
if
res
:
logger
.
info
(
f
"文件处理成功,输出文件路径为: '
{
res
}
', 耗时为:
{
end
-
start
}
"
)
logger
.
info
(
f
"文件处理成功,输出文件路径为: '
{
res
}
', 耗时为:
{
round
(
end
-
start
,
2
)
}
"
)
else
:
else
:
logger
.
warning
(
f
"文件处理结果为空: '
{
file_path
}
'"
)
logger
.
warning
(
f
"文件处理结果为空: '
{
file_path
}
'"
)
except
requests
.
exceptions
.
RequestException
as
req_err
:
except
requests
.
exceptions
.
RequestException
as
req_err
:
...
...
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