aboutsummaryrefslogtreecommitdiff
path: root/modules/scripts.py
diff options
context:
space:
mode:
authormissionfloyd <missionfloyd@users.noreply.github.com>2023-03-26 21:50:22 -0600
committerGitHub <noreply@github.com>2023-03-26 21:50:22 -0600
commit8410b1351e2fb2cf6e29925e06c2f0e51ce7852d (patch)
tree1ff9682524e2994d7299af502c4fcdc3aa5b2ed7 /modules/scripts.py
parentcb8c447f0d37b5ee9df9a7ee3e9d32b7966dabee (diff)
parent3b5a3fab91ff797b28239cda5b449aac1f85ad00 (diff)
Merge branch 'AUTOMATIC1111:master' into extra-network-preview-lazyload
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