mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-18 10:46:25 +00:00
fix
This commit is contained in:
parent
1377c5b953
commit
a0d97d96fb
@ -556,7 +556,10 @@ class LollmsApplication(LoLLMsCom):
|
|||||||
languages = []
|
languages = []
|
||||||
# Construire le chemin vers le dossier contenant les fichiers de langue pour la personnalité actuelle
|
# Construire le chemin vers le dossier contenant les fichiers de langue pour la personnalité actuelle
|
||||||
languages_dir = self.lollms_paths.personal_configuration_path / "personalities" / self.personality.name
|
languages_dir = self.lollms_paths.personal_configuration_path / "personalities" / self.personality.name
|
||||||
default_language = self.personality.language.lower().strip().split()[0]
|
if self.personality.language:
|
||||||
|
default_language = self.personality.language.lower().strip().split()[0]
|
||||||
|
else:
|
||||||
|
default_language = "english"
|
||||||
# Vérifier si le dossier existe
|
# Vérifier si le dossier existe
|
||||||
languages_dir.mkdir(parents=True, exist_ok=True)
|
languages_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user