This commit is contained in:
saloui 2023-07-24 16:10:58 +02:00
parent 9075ab2036
commit 732e98920c
2 changed files with 6 additions and 3 deletions

7
app.py
View File

@ -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}")

View File

@ -13,3 +13,5 @@ requests
eventlet
websocket-client
GitPython
setuptools
numpy