From 8858b643240bb29bb8479d70c81160e8bc042530 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Fri, 2 Feb 2024 11:31:05 +0100 Subject: [PATCH] fix: dont know python --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 96425fc..7dcd71b 100755 --- a/main.py +++ b/main.py @@ -62,7 +62,7 @@ def translate_to_json(input_html: str) -> str: "role": "system", "content": "You are an assistant helping a developer converting raw text data to JSON. Output only valid JSON following the given examples, without including any additional notes or comments", }, - ] + ( + ] + list( map(lambda example: ({ "role": "user", "content": f"""INPUT:\n{example["input"]}\n\nOUTPUT JSON:\n{example["output"]}"""