Skip to content

Commit

Permalink
doc: HF_ENDPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
Byaidu committed Dec 18, 2024
1 parent 518f57f commit a353e68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion docs/README_ja-JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a353e68

Please sign in to comment.