Spaces:
Sleeping
Sleeping
Download run_inference.ps1 from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/run_inference.ps1
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/run_inference.ps1
-
curl -L -o run_inference.ps1 https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/run_inference.ps1
655 Bytes
| # PowerShell script to run inference with SWE-bench task source | |
| # Sets environment variables and runs inference.py | |
| # Set task source to SWE-bench | |
| $env:TASK_SOURCE = "swebench" | |
| # Optional: Set SWE-bench tasks root explicitly (already defaults to dataset/swebench_lite_tasks) | |
| # $env:SWEBENCH_TASKS_ROOT = "$(Get-Location)\dataset\swebench_lite_tasks" | |
| Write-Host "Environment Variables Set:" -ForegroundColor Green | |
| Write-Host " TASK_SOURCE=$env:TASK_SOURCE" | |
| Write-Host "" | |
| Write-Host "Running inference.py..." -ForegroundColor Cyan | |
| Write-Host "" | |
| # Run inference | |
| python inference.py | |
| # Exit with same code as python | |
| exit $LASTEXITCODE | |