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:
Abubakar Abid 2024-10-18 15:56:28 -07:00 committed by GitHub
parent 16895e8628
commit bcb7d15a8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"gradio": patch
---
fix:Add a `.clear` event to the `gr.Chatbot` component

View File

@ -147,6 +147,7 @@ class Chatbot(Component):
Events.retry,
Events.undo,
Events.example_select,
Events.clear,
]
def __init__(

View File

@ -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",

View File

@ -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