mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-04-13 22:02:56 +00:00
added tests
This commit is contained in:
parent
8b8baa9c4c
commit
e649f1c4e3
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user