From a5417e1cf56ca6754cbdfe629afb282ee4bbf48a Mon Sep 17 00:00:00 2001 From: CHANGXUBO Date: Wed, 17 May 2023 13:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0install=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3PaddleOCR=E4=BE=9D=E8=B5=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#387)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/INSTALL.md | 4 ++++ webui.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 48abee7..26ec11b 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -32,6 +32,10 @@ $ cd langchain-ChatGLM # 项目中 pdf 加载由先前的 detectron2 替换为使用 paddleocr,如果之前有安装过 detectron2 需要先完成卸载避免引发 tools 冲突 $ pip uninstall detectron2 +# 检查paddleocr依赖,linux环境下paddleocr依赖libX11,libXext +$ yum install libX11 +$ yum install libXext + # 安装依赖 $ pip install -r requirements.txt diff --git a/webui.py b/webui.py index c6d74bf..77f34c4 100644 --- a/webui.py +++ b/webui.py @@ -427,4 +427,4 @@ with gr.Blocks(css=block_css, theme=gr.themes.Default(**default_theme_args)) as server_port=7860, show_api=False, share=False, - inbrowser=False)) + inbrowser=False)) \ No newline at end of file