mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
Block-Events
- format backend
This commit is contained in:
parent
3448dc95ae
commit
c8411c75c6
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user