mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-29 15:44:12 +00:00
upgraded unmount personalities
This commit is contained in:
parent
6dfd473c44
commit
ca66875180
8
app.py
8
app.py
@ -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,
|
||||
|
@ -4,5 +4,5 @@ Content-Type: application/json
|
||||
{
|
||||
"language": "english",
|
||||
"category": "generic",
|
||||
"name": "lollms"
|
||||
"name": "gpt4all"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user