diff --git a/app.py b/app.py index 1b43cf2e..e96206bc 100644 --- a/app.py +++ b/app.py @@ -745,7 +745,7 @@ class LoLLMsWebUI(LoLLMsAPPI): config_file = package_full_path / "config.yaml" if config_file.exists(): self.config["personalities"].append(package_path) - self.personalities = self.process.rebuild_personalities() + self.mounted_personalities = self.process.rebuild_personalities() self.personality = self.mounted_personalities[self.config["active_personality_id"]] self.apply_settings() return jsonify({"status": True, @@ -788,12 +788,17 @@ class LoLLMsWebUI(LoLLMsAPPI): return jsonify({"status": False, "error":"Couldn't unmount personality"}) def select_personality(self): - id = request.files['id'] + data = request.get_json() + id = data['id'] if id