Skip to content

Commit

Permalink
Merge pull request #240 from thaiminhpv/fix/create_text_dataset_save_…
Browse files Browse the repository at this point in the history
…to_disk_bug

Fix dataset.save_to_disk(output_file) does not accept pathlib.Path object
  • Loading branch information
john-b-yang authored Oct 25, 2024
2 parents fe8cb2e + bf092cc commit dc4c087
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions swebench/inference/make_datasets/create_text_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def main(
if output_file.exists():
logger.info(f"{output_file.absolute().as_posix()} already exists. Aborting")
return
output_file = str(output_file)
if Path(dataset_name_or_path).exists():
dataset = load_from_disk(dataset_name_or_path)
else:
Expand Down

0 comments on commit dc4c087

Please sign in to comment.