upgraded code

This commit is contained in:
Saifeddine ALOUI 2023-06-10 02:03:29 +02:00
parent 23055cbdb5
commit a57bf5f3f2

View File

@ -293,7 +293,8 @@ class ModelProcess:
self._set_config_result['status'] ='semi_failed'
self._set_config_result['personalities_status'] ='semi_failed'
self.personality = self.mounted_personalities[self.config['active_personality_id']]
self.personality = self.config["personalities"][self.config['active_personality_id']]
self.mounted_personalities = self.config["personalities"]
print("Personality set successfully")
def _run(self):
@ -465,7 +466,7 @@ class LoLLMsAPPI():
#Create and launch the process
self.process = ModelProcess(config)
self.config = config
self.mounted_personalities = self.config["personalities"]
self.binding = self.process.rebuild_binding(self.config)
self.personalities = self.process.rebuild_personalities()
self.personality = self.personalities[self.config["active_personality_id"]]