Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
f6f1d00d
Commit
f6f1d00d
authored
Jul 23, 2024
by
myhloli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
pdf_extract_kit.py
magic_pdf/model/pdf_extract_kit.py
+1
-1
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:
...
@@ -22,7 +22,7 @@ try:
from
magic_pdf.model.pek_sub_modules.self_modify
import
ModifiedPaddleOCR
from
magic_pdf.model.pek_sub_modules.self_modify
import
ModifiedPaddleOCR
except
ImportError
as
e
:
except
ImportError
as
e
:
logger
.
exception
(
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
)
exit
(
1
)
...
...
magic_pdf/model/pp_structure_v2.py
View file @
f6f1d00d
...
@@ -5,7 +5,7 @@ from loguru import logger
...
@@ -5,7 +5,7 @@ from loguru import logger
try
:
try
:
from
paddleocr
import
PPStructure
from
paddleocr
import
PPStructure
except
ImportError
:
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
)
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