Download getpowershell.ps1 from Iredteam/joblib-payload-chatbot: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/Iredteam/joblib-payload-chatbot/resolve/main/getpowershell.ps1
- Command line
-
hf download hf://Iredteam/joblib-payload-chatbot/getpowershell.ps1
-
curl -L -o getpowershell.ps1 https://huggingface.co/Iredteam/joblib-payload-chatbot/resolve/main/getpowershell.ps1
603 Bytes
| # Create directory for the model | |
| New-Item -ItemType Directory -Path .\flan-t5-small -Force | |
| # Define the list of model files | |
| $files = @( | |
| "config.json", | |
| "pytorch_model.bin", | |
| "tokenizer.json", | |
| "tokenizer_config.json", | |
| "special_tokens_map.json", | |
| "vocab.txt" | |
| ) | |
| # Base URL for the model files | |
| $base_url = "https://huggingface.co/google/flan-t5-small/resolve/main/" | |
| # Loop through each file and download it | |
| foreach ($file in $files) { | |
| $url = "$base_url$file" | |
| $output = ".\flan-t5-small\$file" | |
| Invoke-WebRequest -Uri $url -OutFile $output | |
| Write-Host "Downloaded: $file" | |
| } |