mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
updated
This commit is contained in:
parent
adf292355d
commit
4df0a41564
@ -703,9 +703,13 @@ class LollmsApplication(LoLLMsCom):
|
||||
try:
|
||||
personality = PersonalityBuilder(self.lollms_paths, self.config, self.model, self, callback=callback).build_personality(id)
|
||||
if personality.model is not None:
|
||||
try:
|
||||
self.cond_tk = personality.model.tokenize(personality.personality_conditioning)
|
||||
self.n_cond_tk = len(self.cond_tk)
|
||||
ASCIIColors.success(f"Personality {personality.name} mounted successfully")
|
||||
except:
|
||||
self.cond_tk = []
|
||||
self.n_cond_tk = 0
|
||||
else:
|
||||
ASCIIColors.success(f"Personality {personality.name} mounted successfully but no model is selected")
|
||||
except Exception as ex:
|
||||
|
Loading…
Reference in New Issue
Block a user