Skip to content

Commit 62209da

Browse files
freddyaboultongradio-pr-botabidlabs
authored
Remove gray line present in ChatInterface demos (#11756)
* Fix * add changeset * add changeset * Update gradio/components/browser_state.py Co-authored-by: Abubakar Abid <[email protected]> --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Abubakar Abid <[email protected]>
1 parent 9260ffb commit 62209da

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.changeset/cute-sheep-sniff.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gradio": patch
3+
---
4+
5+
fix:Remove gray line present in ChatInterface demos

gradio/components/browser_state.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
from gradio_client.documentation import document
1010

11-
from gradio.components.base import FormComponent
11+
from gradio.components.base import Component
1212
from gradio.events import Events
1313

1414

1515
@document()
16-
class BrowserState(FormComponent):
16+
class BrowserState(Component):
1717
EVENTS = [Events.change]
1818
"""
1919
Special component that stores state in the browser's localStorage in an encrypted format.
@@ -73,3 +73,7 @@ def example_payload(self) -> Any:
7373

7474
def example_value(self) -> Any:
7575
return "test"
76+
77+
def breaks_grouping(self) -> bool:
78+
"""BrowserState components should not break wrapper grouping chains."""
79+
return False

0 commit comments

Comments
 (0)