mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +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:
|
try:
|
||||||
exec(f"import extensions.{name}.script")
|
exec(f"import extensions.{name}.script")
|
||||||
extension = getattr(extensions, name).script
|
extension = getattr(extensions, name).script
|
||||||
|
apply_settings(extension, name)
|
||||||
if extension not in setup_called and hasattr(extension, "setup"):
|
if extension not in setup_called and hasattr(extension, "setup"):
|
||||||
setup_called.add(extension)
|
setup_called.add(extension)
|
||||||
apply_settings(extension, name)
|
|
||||||
extension.setup()
|
extension.setup()
|
||||||
|
|
||||||
state[name] = [True, i]
|
state[name] = [True, i]
|
||||||
|
Loading…
Reference in New Issue
Block a user