Ubuntu部署chandra OCR服务

1、拉取项目文件

git clone https://github.com/datalab-to/chandra.git && cd chandra

2、创建并激活虚拟环境

uv venv && source .venv/bin/activate

3、安装部署

uv pip install chandra-ocr

4、启动服务

chandra_app

5、配置模型下载的镜像站

export HF_ENDPOINT=https://hf-mirror.com

6、浏览器访问使用:

http://192.168.10.152:8501/

选择hf模型后第一次使用,系统将自动下载模型权重文件(model-00001-of-00004.safetensors,model-00002-of-00004.safetensors,model-00003-of-00004.safetensors和model-00004-of-00004.safetensors)

7、上传pdf文件,进行OCR识别



----------------------------------------

要18G或20G以上的显卡

评论

此博客中的热门博文

通过命令行在Github上发布项目的新版本

利用GitHub免费的静态页面托管空间发布网页

本地部署OpenAvatarChat实时交互数字人系统