mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
Fixes: Initial message is overwrtitten in chat interface (#6229)
* fix * add changeset * format --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
parent
2c9fd437f8
commit
5cddd65880
5
.changeset/public-banks-film.md
Normal file
5
.changeset/public-banks-film.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fixes: Initial message is overwrtitten in chat interface
|
@ -242,7 +242,9 @@ class ChatInterface(Blocks):
|
||||
client_utils.synchronize_async(self.examples_handler.cache)
|
||||
|
||||
self.saved_input = State()
|
||||
self.chatbot_state = State([])
|
||||
self.chatbot_state = (
|
||||
State(self.chatbot.value) if self.chatbot.value else State([])
|
||||
)
|
||||
|
||||
self._setup_events()
|
||||
self._setup_api()
|
||||
|
Loading…
Reference in New Issue
Block a user