gradio-checkboxgroupmarkdown 0.0.2__py3-none-any.whl → 0.0.3__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- gradio_checkboxgroupmarkdown/checkboxgroupmarkdown.py +3 -1
- gradio_checkboxgroupmarkdown/checkboxgroupmarkdown.pyi +2 -0
- gradio_checkboxgroupmarkdown/templates/component/index.js +5405 -4728
- gradio_checkboxgroupmarkdown/templates/component/style.css +1 -1
- {gradio_checkboxgroupmarkdown-0.0.2.dist-info → gradio_checkboxgroupmarkdown-0.0.3.dist-info}/METADATA +15 -2
- gradio_checkboxgroupmarkdown-0.0.3.dist-info/RECORD +10 -0
- gradio_checkboxgroupmarkdown-0.0.2.dist-info/RECORD +0 -10
- {gradio_checkboxgroupmarkdown-0.0.2.dist-info → gradio_checkboxgroupmarkdown-0.0.3.dist-info}/WHEEL +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
from __future__ import annotations
|
4
4
|
|
5
5
|
from collections.abc import Callable, Sequence
|
6
|
-
from typing import TYPE_CHECKING, Any, Literal, Union
|
6
|
+
from typing import TYPE_CHECKING, Any, Literal, Union, List, Optional
|
7
7
|
|
8
8
|
from gradio_client.documentation import document
|
9
9
|
|
@@ -33,6 +33,7 @@ class CheckboxGroupMarkdown(FormComponent):
|
|
33
33
|
*,
|
34
34
|
value: Sequence[str | float | int] | str | float | int | Callable | None = None,
|
35
35
|
type: ChoiceType = "value",
|
36
|
+
buttons: Optional[List[str]] = None,
|
36
37
|
label: str | None = None,
|
37
38
|
info: str | None = None,
|
38
39
|
every: Timer | float | None = None,
|
@@ -75,6 +76,7 @@ class CheckboxGroupMarkdown(FormComponent):
|
|
75
76
|
f"Invalid value for parameter `type`: {type}. Please choose from one of: {valid_types}"
|
76
77
|
)
|
77
78
|
self.type = type
|
79
|
+
self.buttons = buttons or []
|
78
80
|
super().__init__(
|
79
81
|
label=label,
|
80
82
|
info=info,
|
@@ -30,6 +30,7 @@ class CheckboxGroupMarkdown(FormComponent):
|
|
30
30
|
*,
|
31
31
|
value: Sequence[str | float | int] | str | float | int | Callable | None = None,
|
32
32
|
type: ChoiceType = "value",
|
33
|
+
buttons: Optional[List[str]] = None,
|
33
34
|
label: str | None = None,
|
34
35
|
info: str | None = None,
|
35
36
|
every: Timer | float | None = None,
|
@@ -72,6 +73,7 @@ class CheckboxGroupMarkdown(FormComponent):
|
|
72
73
|
f"Invalid value for parameter `type`: {type}. Please choose from one of: {valid_types}"
|
73
74
|
)
|
74
75
|
self.type = type
|
76
|
+
self.buttons = buttons or []
|
75
77
|
super().__init__(
|
76
78
|
label=label,
|
77
79
|
info=info,
|