mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
Apply settings regardless of setup() function
This commit is contained in:
parent
ebca3f86d5
commit
da812600f4
@ -32,9 +32,9 @@ def load_extensions():
|
||||
try:
|
||||
exec(f"import extensions.{name}.script")
|
||||
extension = getattr(extensions, name).script
|
||||
apply_settings(extension, name)
|
||||
if extension not in setup_called and hasattr(extension, "setup"):
|
||||
setup_called.add(extension)
|
||||
apply_settings(extension, name)
|
||||
extension.setup()
|
||||
|
||||
state[name] = [True, i]
|
||||
|
Loading…
Reference in New Issue
Block a user