From 3601def02d67b6f3e2c9f6c6c0aa48649b886bd7 Mon Sep 17 00:00:00 2001 From: xcyoloxcy Date: Tue, 21 Mar 2023 23:59:55 +0800 Subject: [PATCH] fix chat_conclusion_text may be used before assigned --- chat_paper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chat_paper.py b/chat_paper.py index db3ca01..8cdb770 100644 --- a/chat_paper.py +++ b/chat_paper.py @@ -234,6 +234,7 @@ def summary_with_chat(self, paper_list): else: text = summary_text # chat_conclusion_text = self.chat_conclusion(text=text) + chat_conclusion_text = "" try: chat_conclusion_text = self.chat_conclusion(text=text) except Exception as e: