mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
adding docstrings
This commit is contained in:
parent
a5e5a1360e
commit
7cd76a517f
@ -106,9 +106,9 @@ class Column(BlockContext):
|
||||
|
||||
|
||||
class Tabs(BlockContext):
|
||||
def __init__(self, css: Optional[str] = None):
|
||||
def __init__(self, css: Optional[dict] = None):
|
||||
"""
|
||||
css: Css rules to apply to block.
|
||||
css: css rules to apply to block.
|
||||
"""
|
||||
super().__init__(css)
|
||||
|
||||
|
@ -2722,6 +2722,9 @@ class Chatbot(Component):
|
||||
|
||||
# Static Components
|
||||
class Markdown(Component):
|
||||
"""
|
||||
Used for Markdown output. Expects a valid string that is rendered into Markdown.
|
||||
"""
|
||||
def __init__(
|
||||
self,
|
||||
default_value: str = "",
|
||||
@ -2739,6 +2742,9 @@ class Markdown(Component):
|
||||
|
||||
|
||||
class Button(Component):
|
||||
"""
|
||||
Used to create a button, that can be assigned arbitrary click() events.
|
||||
"""
|
||||
def __init__(
|
||||
self,
|
||||
default_value: str = "",
|
||||
@ -2765,6 +2771,10 @@ class Button(Component):
|
||||
|
||||
|
||||
class Dataset(Component):
|
||||
"""
|
||||
Used to create a output widget for showing datasets. Used to render the examples
|
||||
box in the interface.
|
||||
"""
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
|
Loading…
Reference in New Issue
Block a user