From 732e98920c4d148fcd69e1b05134b8ad5003d8d5 Mon Sep 17 00:00:00 2001 From: saloui Date: Mon, 24 Jul 2023 16:10:58 +0200 Subject: [PATCH] updated --- app.py | 7 ++++--- requirements.txt | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 180db257..89fd4889 100644 --- a/app.py +++ b/app.py @@ -985,10 +985,11 @@ class LoLLMsWebUI(LoLLMsAPPI): except Exception as e: print(f"Error occurred while parsing JSON: {e}") return jsonify({"status":False, 'error':str(e)}) - - personality_path = lollms_paths.personalities_zoo_path / data['name'] - ASCIIColors.info(f"- Reinstalling personality {data['name']}...") + if not 'name' in data: + data['name']=self.config.personalities[self.config["active_personality_id"]] try: + personality_path = lollms_paths.personalities_zoo_path / data['name'] + ASCIIColors.info(f"- Reinstalling personality {data['name']}...") ASCIIColors.info("Unmounting personality") idx = self.config.personalities.index(data['name']) print(f"index = {idx}") diff --git a/requirements.txt b/requirements.txt index 28e43c91..d5a6b87b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,3 +13,5 @@ requests eventlet websocket-client GitPython +setuptools +numpy \ No newline at end of file