Block-Events

- format backend
This commit is contained in:
Ömer Faruk Özdemir 2022-03-02 18:14:53 +03:00
parent 3448dc95ae
commit c8411c75c6
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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.