mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-21 21:47:54 +00:00
fix
This commit is contained in:
parent
52c3568439
commit
f810f0d0cc
@ -867,6 +867,7 @@ class AIPersonality:
|
||||
self.audio_samples = [f for f in self.audio_path.iterdir()]
|
||||
|
||||
# Verify if the persona has a data folder
|
||||
if self.data_path.exists():
|
||||
self.database_path = self.data_path / "db.json"
|
||||
if self.database_path.exists():
|
||||
ASCIIColors.info("Loading database ...",end="")
|
||||
@ -896,6 +897,9 @@ class AIPersonality:
|
||||
self.persona_data_vectorizer = None
|
||||
self._data = None
|
||||
|
||||
else:
|
||||
self.persona_data_vectorizer = None
|
||||
self._data = None
|
||||
|
||||
if self.run_scripts:
|
||||
# Search for any processor code
|
||||
|
Loading…
Reference in New Issue
Block a user