From 5dd92806e6b33c5eed0d089f6da28170818db3db Mon Sep 17 00:00:00 2001 From: XYZ Date: Tue, 22 Apr 2025 21:32:44 +0900 Subject: [PATCH] Update common.py to fix a bug without the default value None, the gen_model_judgement.py will encouter an error. --- judgelm/llm_judge/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judgelm/llm_judge/common.py b/judgelm/llm_judge/common.py index c756696..4a4ed1a 100644 --- a/judgelm/llm_judge/common.py +++ b/judgelm/llm_judge/common.py @@ -134,7 +134,7 @@ def to_gradio_chatbot(self): ret[-1][-1] = msg return ret - def copy(self, answer_num): + def copy(self, answer_num = None): if answer_num is not None: prompt = self.prompt\ .replace("two", num2words[int(answer_num)])\ @@ -294,4 +294,4 @@ def load_questions(question_file: str, begin: Optional[int], end: Optional[int]) sep_style=SeparatorStyle.SINGLE, sep="", appendix="### Response:10" -) \ No newline at end of file +)