From 9ffca59699fb5eb8dcb06009e6ff2baa8e28d5cb Mon Sep 17 00:00:00 2001 From: hz4th_coder Date: Thu, 20 Aug 2026 13:05:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E8=BF=81=E7=A7=BB=EF=BC=9A16?= =?UTF-8?q?101=20=E2=86=92=2016003=EF=BC=8816001-16100=20=E7=A9=BA?= =?UTF-8?q?=E9=97=B2=E7=AB=AF=E5=8F=A3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- app.py | 2 +- start.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5728404..48bf5ff 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,12 @@ static/index.html 前端单页 ## 快速开始 ```bash -./start.sh # 启动(默认端口 16101) +./start.sh # 启动(默认端口 16003) ./start.sh stop # 停止 ./start.sh restart # 重启 ``` -访问:`http://:16101/` +访问:`http://:16003/` ## 生成测试 PDF 并跑管线 @@ -60,7 +60,7 @@ static/index.html 前端单页 | 变量 | 默认 | 说明 | |---|---|---| -| PORT | 16101 | 服务端口 | +| PORT | 16003 | 服务端口 | | RENDER_ZOOM | 2.5 | 页面渲染倍率(72dpi 基准),越大 OCR 越准越慢 | | MAX_TOKENS_PAGE | 3000 | 每页生成 token 预算 | | OCR_EMBEDDED_IMAGES | 1 | 文本页内嵌图片是否做表格识别/描述 | diff --git a/app.py b/app.py index 94981ab..82d0321 100644 --- a/app.py +++ b/app.py @@ -309,4 +309,4 @@ app.mount("/", StaticFiles(directory=os.path.join(config.BASE_DIR, "static"), ht if __name__ == "__main__": import uvicorn - uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("PORT", "16101")), log_level="info") + uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("PORT", "16003")), log_level="info") diff --git a/start.sh b/start.sh index 1422e11..5444be5 100755 --- a/start.sh +++ b/start.sh @@ -1,7 +1,7 @@ #!/bin/bash -# PDF → Markdown 转换服务 启动脚本(默认端口 16101) +# PDF → Markdown 转换服务 启动脚本(默认端口 16003) cd "$(dirname "$0")" -PORT=${PORT:-16101} +PORT=${PORT:-16003} PY=/home/hz1/miniconda3/envs/openclaw/bin/python3 [ -x "$PY" ] || PY=python3 mkdir -p logs