mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
initial gradio 3.22 support
This commit is contained in:
parent
a9fed7c364
commit
9f0da9f6ed
15 changed files with 299 additions and 635 deletions
|
|
@ -521,6 +521,9 @@ def IOComponent_init(self, *args, **kwargs):
|
|||
|
||||
res = original_IOComponent_init(self, *args, **kwargs)
|
||||
|
||||
# this adds gradio-* to every component for css styling (ie gradio-button to gr.Button)
|
||||
self.elem_classes = ["gradio-" + self.get_block_name(), *(self.elem_classes or [])]
|
||||
|
||||
script_callbacks.after_component_callback(self, **kwargs)
|
||||
|
||||
if scripts_current is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue