Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosgjs committed Jan 12, 2024
1 parent bf38d27 commit 81fb31f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/autora/doc/pipelines/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def import_data(code_file: str, text_file: str, output_file: str = "data.jsonl")
# alpaca jsonl format:
def read_text(file: str) -> str:
return Path(file).read_text()

d = {"instruction": read_text(code_file), "output": read_text(text_file)}
with jsonlines.open(output_file, "a") as file:
file.write(d)
Expand Down

0 comments on commit 81fb31f

Please sign in to comment.