Jelajahi Sumber

doc: HF_ENDPOINT

Byaidu 1 tahun lalu
induk
melakukan
a353e68cff
3 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 4 4
      README.md
  2. 1 1
      docs/README_ja-JP.md
  3. 1 1
      docs/README_zh-CN.md

+ 4 - 4
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:
 
-<details>
+<details open>
   <summary>1. Commandline</summary>
 
 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).
 

+ 1 - 1
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
 ```
 
 <h3 id="cmd">方法1. コマンドライン</h3>

+ 1 - 1
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
 ```
 
 <h3 id="cmd">方法一、命令行工具</h3>