aboutsummaryrefslogtreecommitdiffstats
path: root/modules/gradio_extensons.py
diff options
context:
space:
mode:
authorKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-12-02 09:00:09 +0000
committerKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-12-02 09:00:09 +0000
commit110485d5bb511ab01ac3d890f1deca0502f4c7db (patch)
tree4335df77c422985e28b30c67ea846ca71e5ef1d7 /modules/gradio_extensons.py
parent3d341ebc7dcb44df3b4c013b3805c08d8a35e24a (diff)
parent0bb6e00ba3c6775b17b3449c454c6efabb1bdad1 (diff)
downloadstable-diffusion-webui-gfx803-110485d5bb511ab01ac3d890f1deca0502f4c7db.tar.gz
stable-diffusion-webui-gfx803-110485d5bb511ab01ac3d890f1deca0502f4c7db.tar.bz2
stable-diffusion-webui-gfx803-110485d5bb511ab01ac3d890f1deca0502f4c7db.zip
Merge branch 'dev' into test-fp8
Diffstat (limited to 'modules/gradio_extensons.py')
-rw-r--r--modules/gradio_extensons.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/gradio_extensons.py b/modules/gradio_extensons.py
index e6b6835a..7d88dc98 100644
--- a/modules/gradio_extensons.py
+++ b/modules/gradio_extensons.py
@@ -47,10 +47,20 @@ def Block_get_config(self):
def BlockContext_init(self, *args, **kwargs):
+ if scripts.scripts_current is not None:
+ scripts.scripts_current.before_component(self, **kwargs)
+
+ scripts.script_callbacks.before_component_callback(self, **kwargs)
+
res = original_BlockContext_init(self, *args, **kwargs)
add_classes_to_gradio_component(self)
+ scripts.script_callbacks.after_component_callback(self, **kwargs)
+
+ if scripts.scripts_current is not None:
+ scripts.scripts_current.after_component(self, **kwargs)
+
return res