diff options
author | missionfloyd <missionfloyd@users.noreply.github.com> | 2023-03-27 03:50:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 03:50:22 +0000 |
commit | 8410b1351e2fb2cf6e29925e06c2f0e51ce7852d (patch) | |
tree | 1ff9682524e2994d7299af502c4fcdc3aa5b2ed7 /modules/scripts.py | |
parent | cb8c447f0d37b5ee9df9a7ee3e9d32b7966dabee (diff) | |
parent | 3b5a3fab91ff797b28239cda5b449aac1f85ad00 (diff) | |
download | stable-diffusion-webui-gfx803-8410b1351e2fb2cf6e29925e06c2f0e51ce7852d.tar.gz stable-diffusion-webui-gfx803-8410b1351e2fb2cf6e29925e06c2f0e51ce7852d.tar.bz2 stable-diffusion-webui-gfx803-8410b1351e2fb2cf6e29925e06c2f0e51ce7852d.zip |
Merge branch 'AUTOMATIC1111:master' into extra-network-preview-lazyload
Diffstat (limited to 'modules/scripts.py')
-rw-r--r-- | modules/scripts.py | 12 |
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
|