Buckets:

download
raw
911 Bytes
from __future__ import annotations
from gradio.component_meta import create_or_modify_pyi
from gradio.events import EventListener, Events
BLOCKS_EVENTS: list[EventListener | str] = [Events.load]
class BlocksMeta(type):
def __new__(cls, name, bases, attrs):
for event in BLOCKS_EVENTS:
trigger = (
event
if isinstance(event, EventListener)
else EventListener(event_name=event)
).copy()
trigger.set_doc(component=name)
attrs[event] = trigger.listener
component_class = super().__new__(cls, name, bases, attrs)
create_or_modify_pyi(BlocksEvents, "BlocksEvents", BLOCKS_EVENTS)
return component_class
class BlocksEvents:
"""
This class is used to hold the events for the Blocks component. It is populated dynamically
by the BlocksMeta metaclass.
"""
pass

Xet Storage Details

Size:
911 Bytes
·
Xet hash:
f0a43145677a0c041db8225ac62164b97f35c4872aa3482b029008eba97e26e4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.