Răsfoiți Sursa

docs: add filename to wget command in model download scripts

- Update wget commands in both English and Chinese documentation to specify the filename
- Improve clarity and prevent potential filename conflicts when downloading the scripts
myhloli 1 an în urmă
părinte
comite
5de6af683e

+ 1 - 1
docs/how_to_download_models_en.md

@@ -7,7 +7,7 @@ Model downloads are divided into initial downloads and updates to the model dire
 Use a Python Script to Download Model Files from Hugging Face
 ```bash
 pip install huggingface_hub
-wget https://github.com/opendatalab/MinerU/raw/master/docs/download_models_hf.py
+wget https://github.com/opendatalab/MinerU/raw/master/docs/download_models_hf.py -O download_models_hf.py
 python download_models_hf.py
 ```
 The Python script will automatically download the model files and configure the model directory in the configuration file.

+ 2 - 2
docs/how_to_download_models_zh_cn.md

@@ -8,7 +8,7 @@
   <summary>方法一:从 Hugging Face 下载模型</summary>
   <p>使用python脚本 从Hugging Face下载模型文件</p>
   <pre><code>pip install huggingface_hub
-wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models_hf.py
+wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models_hf.py -O download_models_hf.py
 python download_models_hf.py</code></pre>
   <p>python脚本执行完毕后,会输出模型下载目录</p>
 </details>
@@ -19,7 +19,7 @@ python download_models_hf.py</code></pre>
 
 ```bash
 pip install modelscope
-wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models.py
+wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models.py -O download_models.py
 python download_models.py
 ```
 python脚本会自动下载模型文件并配置好配置文件中的模型目录