Răsfoiți Sursa

docs: add wget command for Ubuntu and powershell script for Windows

Add instructions to download the magic-pdf.template.json file using wget on
Ubuntu and a PowerShell script on Windows in the respective README files.
This is to facilitate the setup process by providing direct download options,
replacing manual file transfers.
myhloli 1 an în urmă
părinte
comite
44a2dc3750

+ 1 - 0
docs/README_Ubuntu_CUDA_Acceleration_zh_CN.md

@@ -68,6 +68,7 @@ pip install magic-pdf[full]==0.6.2b1 detectron2 --extra-index-url https://wheels
 >  
 > linux用户目录为 "/home/用户名"
 ```bash
+wget https://github.com/opendatalab/MinerU/raw/master/magic-pdf.template.json
 cp magic-pdf.template.json ~/magic-pdf.json
 ```
 

+ 2 - 1
docs/README_Windows_CUDA_Acceleration_zh_CN.md

@@ -41,7 +41,8 @@ pip install magic-pdf[full]==0.6.2b1 detectron2 --extra-index-url https://wheels
 > ❗️务必执行以下命令将配置文件拷贝到【用户目录】下,否则程序将无法运行
 >  
 > windows用户目录为 "C:\Users\用户名"
-```bash
+```powershell
+(New-Object System.Net.WebClient).DownloadFile('https://github.com/opendatalab/MinerU/raw/master/magic-pdf.template.json', 'magic-pdf.template.json')
 cp magic-pdf.template.json ~/magic-pdf.json
 ```