ChatTTS-Forge / modules /webui /gradio_hijack.py
zhzluke96
update
bf13828
raw
history blame contribute delete
298 Bytes
from gradio.components.base import Block
all_components = []
if not hasattr(Block, "original__init__"):
Block.original_init = Block.__init__
def blk_ini(self, *args, **kwargs):
all_components.append(self)
return Block.original_init(self, *args, **kwargs)
Block.__init__ = blk_ini