diff --git a/gradio/__init__.py b/gradio/__init__.py index c6c85cb55b..8a9b9b4ab7 100644 --- a/gradio/__init__.py +++ b/gradio/__init__.py @@ -11,5 +11,6 @@ from gradio.interface import Interface, close_all, reset_all from gradio.mix import Parallel, Series from gradio.routes import get_state, set_state from gradio.static import Button, Markdown + current_pkg_version = pkg_resources.require("gradio")[0].version __version__ = current_pkg_version diff --git a/gradio/blocks.py b/gradio/blocks.py index c6e3e34fa2..b9450e6634 100644 --- a/gradio/blocks.py +++ b/gradio/blocks.py @@ -34,7 +34,9 @@ class Block: } ) - def change(self, fn: str, inputs: List["Component"], outputs: List["Component"]) -> None: + def change( + self, fn: str, inputs: List["Component"], outputs: List["Component"] + ) -> None: """ Adds change event to the component's dependencies. @@ -62,7 +64,9 @@ class Block: } ) - def save(self, fn: str, inputs: List["Component"], outputs: List["Component"]) -> None: + def save( + self, fn: str, inputs: List["Component"], outputs: List["Component"] + ) -> None: """ Adds save event to the component's dependencies.