diff options
author | space-nuko <24979496+space-nuko@users.noreply.github.com> | 2023-03-28 14:59:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 14:59:12 +0000 |
commit | 4414d36bf6e4f64cb6eac871c89c2e0daa4c5338 (patch) | |
tree | f35f4205328d275427781cdef145ae12014a6ad4 /modules/scripts.py | |
parent | c5f9f7c23759f9a74fa2b563451569c8926604ba (diff) | |
parent | 955df7751eef11bb7697e2d77f6b8a6226b21e13 (diff) | |
download | stable-diffusion-webui-gfx803-4414d36bf6e4f64cb6eac871c89c2e0daa4c5338.tar.gz stable-diffusion-webui-gfx803-4414d36bf6e4f64cb6eac871c89c2e0daa4c5338.tar.bz2 stable-diffusion-webui-gfx803-4414d36bf6e4f64cb6eac871c89c2e0daa4c5338.zip |
Merge branch 'master' into img2img-enhance
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
|