mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 04:17:52 +00:00
bugfix
This commit is contained in:
parent
c4b1f797fe
commit
ca59c0f5af
3
app.py
3
app.py
@ -74,7 +74,8 @@ class LoLLMsWebUI(LoLLMsAPPI):
|
|||||||
self.cancel_gen = False
|
self.cancel_gen = False
|
||||||
|
|
||||||
app.template_folder = "web/dist"
|
app.template_folder = "web/dist"
|
||||||
|
if config["active_personality_id"]>=len(config["personalities"]):
|
||||||
|
config["active_personality_id"] = 0
|
||||||
self.personality_language= config["personalities"][config["active_personality_id"]].split("/")[0]
|
self.personality_language= config["personalities"][config["active_personality_id"]].split("/")[0]
|
||||||
self.personality_category= config["personalities"][config["active_personality_id"]].split("/")[1]
|
self.personality_category= config["personalities"][config["active_personality_id"]].split("/")[1]
|
||||||
self.personality_name= config["personalities"][config["active_personality_id"]].split("/")[2]
|
self.personality_name= config["personalities"][config["active_personality_id"]].split("/")[2]
|
||||||
|
Loading…
Reference in New Issue
Block a user