mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-05 11:10:03 +08:00
Add a .clear
event to the gr.Chatbot
component (#9762)
* clear event fix * add changeset * diffusers fix * update --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
16895e8628
commit
bcb7d15a8a
5
.changeset/sweet-cloths-send.md
Normal file
5
.changeset/sweet-cloths-send.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Add a `.clear` event to the `gr.Chatbot` component
|
@ -147,6 +147,7 @@ class Chatbot(Component):
|
||||
Events.retry,
|
||||
Events.undo,
|
||||
Events.example_select,
|
||||
Events.clear,
|
||||
]
|
||||
|
||||
def __init__(
|
||||
|
@ -800,7 +800,7 @@ class Events:
|
||||
)
|
||||
clear = EventListener(
|
||||
"clear",
|
||||
doc="This listener is triggered when the user clears the {{ component }} using the X button for the component.",
|
||||
doc="This listener is triggered when the user clears the {{ component }} using the clear button for the component.",
|
||||
)
|
||||
play = EventListener(
|
||||
"play",
|
||||
|
@ -55,7 +55,7 @@ cycler==0.12.1
|
||||
# via matplotlib
|
||||
decorator==5.1.1
|
||||
# via ipython
|
||||
diffusers==0.26.3
|
||||
diffusers==0.30.3
|
||||
# via -r requirements.in
|
||||
dnspython==2.6.1
|
||||
# via email-validator
|
||||
|
Loading…
Reference in New Issue
Block a user