Use unauthenticated HTTP downloader
Browse files- download-models.bat +1 -3
download-models.bat
CHANGED
|
@@ -22,14 +22,12 @@ powershell -NoProfile -ExecutionPolicy Bypass -Command ^
|
|
| 22 |
" 'istftnet2_decoder.onnx'," ^
|
| 23 |
" 'istftnet2-vocoder-f16.gguf'" ^
|
| 24 |
");" ^
|
| 25 |
-
"$headers=@{};" ^
|
| 26 |
-
"if ($env:HF_TOKEN) { $headers['Authorization']='Bearer '+$env:HF_TOKEN };" ^
|
| 27 |
"foreach ($f in $files) {" ^
|
| 28 |
" $dst=Join-Path $out $f;" ^
|
| 29 |
" if (Test-Path $dst) { Write-Host ('Already exists: '+$f); continue }" ^
|
| 30 |
" $url='https://huggingface.co/'+$repo+'/resolve/main/'+$f+'?download=true';" ^
|
| 31 |
" Write-Host ('Downloading '+$f);" ^
|
| 32 |
-
" Invoke-WebRequest -Uri $url -OutFile $dst
|
| 33 |
"}" ^
|
| 34 |
"Write-Host 'Done.'"
|
| 35 |
|
|
|
|
| 22 |
" 'istftnet2_decoder.onnx'," ^
|
| 23 |
" 'istftnet2-vocoder-f16.gguf'" ^
|
| 24 |
");" ^
|
|
|
|
|
|
|
| 25 |
"foreach ($f in $files) {" ^
|
| 26 |
" $dst=Join-Path $out $f;" ^
|
| 27 |
" if (Test-Path $dst) { Write-Host ('Already exists: '+$f); continue }" ^
|
| 28 |
" $url='https://huggingface.co/'+$repo+'/resolve/main/'+$f+'?download=true';" ^
|
| 29 |
" Write-Host ('Downloading '+$f);" ^
|
| 30 |
+
" Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $dst;" ^
|
| 31 |
"}" ^
|
| 32 |
"Write-Host 'Done.'"
|
| 33 |
|