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
055b2e78
"test/vscode:/vscode.git/clone" did not exist on "0e7409adb64ac19db2db3583ef3e4077cc569b30"
Commit
055b2e78
authored
Oct 25, 2024
by
zhougaofeng
Browse files
Update common_parse.py
parent
350662f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
magic_pdf/parse/common_parse.py
magic_pdf/parse/common_parse.py
+3
-3
No files found.
magic_pdf/parse/common_parse.py
View file @
055b2e78
...
...
@@ -73,7 +73,7 @@ def process_input(input_path, pdf_ocr, excel_ocr, output_dir):
logger
.
info
(
f
'正在处理文件:
{
file_path
}
'
)
process_file
(
file_path
,
pdf_ocr
,
excel_ocr
,
output_dir
)
else
:
logger
.
info
(
f
'正在
处理
单个文件:
{
input_path
}
'
)
logger
.
info
(
f
'正在
解析
单个文件:
{
input_path
}
'
)
process_file
(
input_path
,
pdf_ocr
,
excel_ocr
,
output_dir
)
def
main
():
...
...
@@ -93,8 +93,8 @@ def main():
else
:
excel_ocr
=
ExcelParser
()
logger
.
info
(
f
'输入目录或文件的路径为:
{
input_path
}
'
)
logger
.
info
(
f
'输出目录为:
{
output_dir
}
'
)
#
logger.info(f'输入目录或文件的路径为: {input_path}
,输出目录为: {output_dir}
')
#
logger.info(f'输出目录为: {output_dir}')
process_input
(
input_path
,
pdf_ocr
,
excel_ocr
,
output_dir
)
...
...
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