From 98007ce374e96d1d1a8a052b5011c2d6875b84c6 Mon Sep 17 00:00:00 2001 From: Looki2000 Date: Mon, 13 Nov 2023 23:03:08 +0100 Subject: [PATCH] Remove unnecessary code and update conversation template in dialog_input.txt --- finetune_dialogs_tool/main.py | 3 --- finetune_dialogs_tool/templates/dialog_input.txt | 7 ++++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/finetune_dialogs_tool/main.py b/finetune_dialogs_tool/main.py index aa8059e..a8bfe9d 100644 --- a/finetune_dialogs_tool/main.py +++ b/finetune_dialogs_tool/main.py @@ -135,9 +135,6 @@ while True: not_ok = False now_pizzeria = True for line in dialog_input[python_end_idx:].splitlines(): - if line == "" or line.startswith("#"): - continue - if line.startswith("piz ="): if not now_pizzeria: print("Wrong order of pizzeria (piz) and customer (bot) messages.") diff --git a/finetune_dialogs_tool/templates/dialog_input.txt b/finetune_dialogs_tool/templates/dialog_input.txt index 368655f..c7bab01 100644 --- a/finetune_dialogs_tool/templates/dialog_input.txt +++ b/finetune_dialogs_tool/templates/dialog_input.txt @@ -18,6 +18,11 @@ order_items = [ # Write the conversation below. # The conversation has to start with "piz" (short for pizzeria) and has to end with "bot". # Do not use double quotes (") in the conversation. Just type the text next to the = sign. +''' + piz = -bot = \ No newline at end of file +bot = + + +''' \ No newline at end of file