mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
Blocks-Components
- add label parameter to Static components
This commit is contained in:
parent
6e293d6940
commit
d396c2ce01
@ -2376,12 +2376,14 @@ class Chatbot(Component):
|
|||||||
# Static Components
|
# Static Components
|
||||||
class Markdown(Component):
|
class Markdown(Component):
|
||||||
# TODO: might add default parameter to initilization, WDYT Ali Abid?
|
# TODO: might add default parameter to initilization, WDYT Ali Abid?
|
||||||
pass
|
def __init__(self, label):
|
||||||
|
super().__init__(label=label)
|
||||||
|
|
||||||
|
|
||||||
class Button(Component):
|
class Button(Component):
|
||||||
# TODO: might add default parameter to initilization, WDYT Ali Abid?
|
# TODO: might add default parameter to initilization, WDYT Ali Abid?
|
||||||
pass
|
def __init__(self, label):
|
||||||
|
super().__init__(label=label)
|
||||||
|
|
||||||
|
|
||||||
# TODO: (faruk) does this take component or interface as a input?
|
# TODO: (faruk) does this take component or interface as a input?
|
||||||
|
Loading…
Reference in New Issue
Block a user