diff --git a/gradio/blocks.py b/gradio/blocks.py index 68da26ed50..d96a9ef829 100644 --- a/gradio/blocks.py +++ b/gradio/blocks.py @@ -11,8 +11,9 @@ if TYPE_CHECKING: # Only import for type checking (is False at runtime). class Block: - def __init__(self): + def __init__(self, css=None): self._id = Context.id + self.css = css Context.id += 1 if Context.block is not None: Context.block.children.append(self)