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
4c1c1b4b
"...git@developer.sourcefind.cn:gaoqiong/flash-attention.git" did not exist on "8d60c373e4ed0075baa4c597891ffd9fb576752c"
Commit
4c1c1b4b
authored
Oct 25, 2024
by
zhougaofeng
Browse files
Update UNIPipe.py
parent
3fb62a69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
magic_pdf/pipe/UNIPipe.py
magic_pdf/pipe/UNIPipe.py
+2
-2
No files found.
magic_pdf/pipe/UNIPipe.py
View file @
4c1c1b4b
...
@@ -26,7 +26,7 @@ class UNIPipe(AbsPipe):
...
@@ -26,7 +26,7 @@ class UNIPipe(AbsPipe):
def
pipe_classify
(
self
):
def
pipe_classify
(
self
):
# self.pdf_type = AbsPipe.classify(self.pdf_bytes)
# self.pdf_type = AbsPipe.classify(self.pdf_bytes)
# logger.info(f'self.pdf_type:{self.pdf_type}')
# logger.info(f'self.pdf_type:{self.pdf_type}')
logger
.
info
(
'暂时强制使用ocr pdf'
)
#
logger.info('暂时强制使用ocr pdf')
self
.
pdf_type
=
self
.
PIP_OCR
self
.
pdf_type
=
self
.
PIP_OCR
def
pipe_analyze
(
self
):
def
pipe_analyze
(
self
):
...
@@ -57,7 +57,7 @@ class UNIPipe(AbsPipe):
...
@@ -57,7 +57,7 @@ class UNIPipe(AbsPipe):
# logger.info(f'drop_mode:\n{drop_mode}')
# logger.info(f'drop_mode:\n{drop_mode}')
# logger.info(f'md_make_mode:\n{md_make_mode}')
# logger.info(f'md_make_mode:\n{md_make_mode}')
result
=
super
().
pipe_mk_markdown
(
config_path
,
img_parent_path
,
drop_mode
,
md_make_mode
)
result
=
super
().
pipe_mk_markdown
(
config_path
,
img_parent_path
,
drop_mode
,
md_make_mode
)
logger
.
info
(
f
"uni_pipe mk
{
md_make_mode
}
finished"
)
#
logger.info(f"uni_pipe mk {md_make_mode} finished")
return
result
return
result
...
...
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