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
f6f1d00d
Commit
f6f1d00d
authored
Jul 24, 2024
by
myhloli
Browse files
feat(magic_pdf): update installation commands for simplified dependency options
parent
5c963168
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
magic_pdf/model/pdf_extract_kit.py
magic_pdf/model/pdf_extract_kit.py
+1
-1
magic_pdf/model/pp_structure_v2.py
magic_pdf/model/pp_structure_v2.py
+1
-1
No files found.
magic_pdf/model/pdf_extract_kit.py
View file @
f6f1d00d
...
...
@@ -22,7 +22,7 @@ try:
from
magic_pdf.model.pek_sub_modules.self_modify
import
ModifiedPaddleOCR
except
ImportError
as
e
:
logger
.
exception
(
e
)
logger
.
error
(
'Required dependency not installed, please install by
\n
"pip install magic-pdf[full
-cpu
] detectron2 --extra-index-url https://myhloli.github.io/wheels/"'
)
logger
.
error
(
'Required dependency not installed, please install by
\n
"pip install magic-pdf[full] detectron2 --extra-index-url https://myhloli.github.io/wheels/"'
)
exit
(
1
)
...
...
magic_pdf/model/pp_structure_v2.py
View file @
f6f1d00d
...
...
@@ -5,7 +5,7 @@ from loguru import logger
try
:
from
paddleocr
import
PPStructure
except
ImportError
:
logger
.
error
(
'paddleocr not installed, please install by "pip install magic-pdf[
cpu]" or "pip install magic-pdf[gpu
]"'
)
logger
.
error
(
'paddleocr not installed, please install by "pip install magic-pdf[
lite
]"'
)
exit
(
1
)
...
...
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