Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Fix: Separate data path/traj dir cause exception (#348)

Kilian Lieretcf012ec6c5c2
diff --git a/inspector/server.py b/inspector/server.py
index 17a97b0f..18c30db6 100644
--- a/inspector/server.py
+++ b/inspector/server.py
@@ -110,8 +110,7 @@ def append_results(traj_path: Path, instance_id: str, content, results, results_
else:
status.append("---------------------------")
status.append("Note that the evaluation results here may not be accurate or up to date, since they are computed separately from the agent run itself.")
- results_relative = results_file.resolve().relative_to(Path(__file__).resolve().parent.parent)
- status.append(f"Check {results_relative} for the most accurate evaluation results.")
+ status.append(f"Check {results_file} for the most accurate evaluation results.")
status.append("")
status.append(f"Instance ID: {instance_id}")
status.append("Based on results:")