Update app.py

This commit is contained in:
Saifeddine ALOUI 2024-09-27 11:15:30 +02:00 committed by GitHub
parent 73f175d90b
commit dead0aaf91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,9 +67,6 @@ class LollmsApplication(LoLLMsCom):
self.long_term_memory = None
self.tts = None
self.session = Session(lollms_paths)
self.skills_library = SkillsLibrary(self.lollms_paths.personal_skills_path/(self.config.skills_lib_database_name+".sqlite"))
self.tasks_library = TasksLibrary(self)
self.handle_generate_msg: Callable[[str, Dict], None] = None
self.generate_msg_with_internet: Callable[[str, Dict], None] = None
@ -170,6 +167,11 @@ class LollmsApplication(LoLLMsCom):
self.load_rag_dbs()
except Exception as ex:
trace_exception(ex)
self.session = Session(lollms_paths)
self.skills_library = SkillsLibrary(self.lollms_paths.personal_skills_path/(self.config.skills_lib_database_name+".sqlite"))
self.tasks_library = TasksLibrary(self)
@staticmethod
def check_internet_connection():