mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
Update config.py
This commit is contained in:
parent
6c07bf0b1d
commit
44516ab445
@ -540,7 +540,7 @@ class TypedConfig:
|
||||
entry_value = int(entry_value)
|
||||
elif entry_type == "float":
|
||||
entry_value = float(entry_value)
|
||||
elif entry_type == "str" or entry_type == "text" or entry_type == "string" or entry_type == "btn":
|
||||
elif entry_type == "str" or entry_type == "text" or entry_type == "string" or entry_type == "btn" or entry_type == "file" or entry_type == "folder":
|
||||
entry_value = str(entry_value)
|
||||
elif entry_type == "bool":
|
||||
entry_value = bool(entry_value)
|
||||
@ -590,4 +590,4 @@ class TypedConfig:
|
||||
if not use_template:
|
||||
return self.config
|
||||
else:
|
||||
return self.config_template
|
||||
return self.config_template
|
||||
|
Loading…
Reference in New Issue
Block a user