Skip to content

Commit

Permalink
Merge pull request #169 from ufal/fix-output-naming-collisions
Browse files Browse the repository at this point in the history
Prevent model output naming collisions
  • Loading branch information
kasnerz authored Dec 9, 2024
2 parents 9ca7b44 + 446e46d commit 2abf025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion factgenie/llm_campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def save_generation_outputs(app, campaign_id, setup_id):
path = OUTPUT_DIR / setup_id
os.makedirs(path, exist_ok=True)

with open(path / f"{setup_id}.jsonl", "w") as f:
with open(path / f"{campaign_id}.jsonl", "w") as f:
for example in outputs:
f.write(json.dumps(example) + "\n")

Expand Down

0 comments on commit 2abf025

Please sign in to comment.