From a353e68cffae8cb70305e9f4ada2595de266eccb Mon Sep 17 00:00:00 2001 From: Byaidu <909756245@qq.com> Date: Thu, 19 Dec 2024 02:15:26 +0800 Subject: [PATCH] doc: HF_ENDPOINT --- README.md | 8 ++++---- docs/README_ja-JP.md | 2 +- docs/README_zh-CN.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 96549c30..492c1a45 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Note that the computing resources of the demo are limited, so please avoid abusi For different use cases, we provide four distinct methods to use our program: -
+
1. Commandline 1. Python installed (3.8 <= version <= 3.12) @@ -158,9 +158,9 @@ For docker deployment on cloud service: The present program needs an AI model(`wybxc/DocLayout-YOLO-DocStructBench-onnx`) before working and some users are not able to download due to network issues. If you have a problem with downloading this model, we provide a workaround using the following environment variable: - ```shell - USE_MODELSCOPE=1 pdf2zh - ``` +```shell +set HF_ENDPOINT=https://hf-mirror.com +``` If the solution does not work to you / you encountered other issues, please refer to [frequently asked questions](https://github.com/Byaidu/PDFMathTranslate/wiki#-faq--%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98). diff --git a/docs/README_ja-JP.md b/docs/README_ja-JP.md index 8e36893b..d88912e3 100644 --- a/docs/README_ja-JP.md +++ b/docs/README_ja-JP.md @@ -77,7 +77,7 @@ pdf2zhの実行には追加モデル(`wybxc/DocLayout-YOLO-DocStructBench-onnx`)が必要です。このモデルはModelScopeでも見つけることができます。起動時にこのモデルのダウンロードに問題がある場合は、以下の環境変数を使用してください: ```shell -USE_MODELSCOPE=1 pdf2zh +set HF_ENDPOINT=https://hf-mirror.com ```

方法1. コマンドライン

diff --git a/docs/README_zh-CN.md b/docs/README_zh-CN.md index 0d7b23b8..42e273b2 100644 --- a/docs/README_zh-CN.md +++ b/docs/README_zh-CN.md @@ -76,7 +76,7 @@ pdf2zh的运行依赖于额外模型(`wybxc/DocLayout-YOLO-DocStructBench-onnx`),该模型在魔搭上也可以找到。如果你在启动时下载该模型遇到问题,请使用如下环境变量: ```shell -USE_MODELSCOPE=1 pdf2zh +set HF_ENDPOINT=https://hf-mirror.com ```

方法一、命令行工具