Commit f6f1d00d authored by myhloli's avatar myhloli

feat(magic_pdf): update installation commands for simplified dependency options

parent 5c963168
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment