upgraded unmount personalities

This commit is contained in:
saloui 2023-06-09 16:51:27 +02:00
parent 6dfd473c44
commit ca66875180
2 changed files with 7 additions and 3 deletions

8
app.py
View File

@ -728,8 +728,12 @@ class LoLLMsWebUI(LoLLMsAPPI):
self.config["personalities"].remove(f"{language}/{category}/{name}")
if self.config["active_personality_id"]>=index:
self.config["active_personality_id"]=0
self.personalities = self.process.rebuild_personalities()
self.personality = self.personalities[self.config["active_personality_id"]]
if len(self.config["personalities"])>0:
self.personalities = self.process.rebuild_personalities()
self.personality = self.personalities[self.config["active_personality_id"]]
else:
self.personalities = []
self.personality = None
self.apply_settings()
return jsonify({
"status": True,

View File

@ -4,5 +4,5 @@ Content-Type: application/json
{
"language": "english",
"category": "generic",
"name": "lollms"
"name": "gpt4all"
}