Spaces:
Running
Running
| # 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 | |