diff --git a/lollms/app.py b/lollms/app.py index 3016727..e867ee2 100644 --- a/lollms/app.py +++ b/lollms/app.py @@ -600,7 +600,10 @@ class LollmsApplication(LoLLMsCom): if self.config.active_tts_service: def start_tts(*args, **kwargs): - self.tti = self.load_service_from_folder(self.lollms_paths.services_zoo_path/"tts", self.config.active_tts_service) + try: + self.tti = self.load_service_from_folder(self.lollms_paths.services_zoo_path/"tts", self.config.active_tts_service) + except Exception as ex: + trace_exception(ex) ASCIIColors.execute_with_animation("Loading TTS services", start_tts, ASCIIColors.color_blue) if self.config.active_tti_service: diff --git a/lollms/databases/discussions_database.py b/lollms/databases/discussions_database.py index 26920d1..d6e5069 100644 --- a/lollms/databases/discussions_database.py +++ b/lollms/databases/discussions_database.py @@ -245,7 +245,7 @@ class DiscussionsDB: def get_discussions(self): rows = self.select("SELECT * FROM discussion") - return [{"id": row[0], "title": row[1]} for row in rows] + return [{"id": row[0], "title": row[1], "created_at": row[3]} for row in rows] def does_last_discussion_have_messages(self): last_discussion_id = self.select("SELECT id FROM discussion ORDER BY id DESC LIMIT 1", fetch_all=False)