aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-04-29 09:45:43 +0000
committerGitHub <noreply@github.com>2023-04-29 09:45:43 +0000
commite6cbfcfe5b42dd8d40ddaf2ecd448b8b0c070565 (patch)
tree6c31ea8ced8590afd4ba019be838bea41885b6cd /modules/scripts.py
parentc9647c8d23efa8c939c6af39878784e246082122 (diff)
parent2c935d8eb0be10edb226e145a72eb373451cb984 (diff)
downloadstable-diffusion-webui-gfx803-e6cbfcfe5b42dd8d40ddaf2ecd448b8b0c070565.tar.gz
stable-diffusion-webui-gfx803-e6cbfcfe5b42dd8d40ddaf2ecd448b8b0c070565.tar.bz2
stable-diffusion-webui-gfx803-e6cbfcfe5b42dd8d40ddaf2ecd448b8b0c070565.zip
Merge branch 'dev' into gradio-theme-support
Diffstat (limited to 'modules/scripts.py')
-rw-r--r--modules/scripts.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/scripts.py b/modules/scripts.py
index d661be4f..4d0bbd66 100644
--- a/modules/scripts.py
+++ b/modules/scripts.py
@@ -553,3 +553,15 @@ def IOComponent_init(self, *args, **kwargs):
original_IOComponent_init = gr.components.IOComponent.__init__
gr.components.IOComponent.__init__ = IOComponent_init
+
+
+def BlockContext_init(self, *args, **kwargs):
+ res = original_BlockContext_init(self, *args, **kwargs)
+
+ add_classes_to_gradio_component(self)
+
+ return res
+
+
+original_BlockContext_init = gr.blocks.BlockContext.__init__
+gr.blocks.BlockContext.__init__ = BlockContext_init