From a57bf5f3f21a0cf7492d6dfd21bd7b78a4f4a2f9 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sat, 10 Jun 2023 02:03:29 +0200 Subject: [PATCH] upgraded code --- api/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/__init__.py b/api/__init__.py index 4cf914b8..7929e43f 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -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"]]