From 81fb31f47b3a8edd9960b2d6148c9d4ee23e6848 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Jurado Suarez Date: Fri, 12 Jan 2024 15:29:10 -0800 Subject: [PATCH] format --- src/autora/doc/pipelines/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/autora/doc/pipelines/main.py b/src/autora/doc/pipelines/main.py index f5c8a9f..a553153 100644 --- a/src/autora/doc/pipelines/main.py +++ b/src/autora/doc/pipelines/main.py @@ -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)