mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-20 05:08:00 +00:00
Update personality.py
This commit is contained in:
parent
b2c9f73a3d
commit
22299b5c7f
@ -1208,8 +1208,10 @@ Use this structure:
|
|||||||
|
|
||||||
self.set_config(config, True)
|
self.set_config(config, True)
|
||||||
|
|
||||||
if config["language"]:
|
lang = config.get("language","english")
|
||||||
default_language = config["language"].lower().strip().split()[0]
|
|
||||||
|
if lang:
|
||||||
|
default_language = lang.lower().strip().split()[0]
|
||||||
else:
|
else:
|
||||||
default_language = 'english'
|
default_language = 'english'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user