Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,9 +100,9 @@ def main():
|
|
100 |
submit_btn.click(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|
101 |
.then(kadi_bot.handle_chat, [chat_history], [chatbot])
|
102 |
clear_btn.click(
|
103 |
-
|
104 |
None,
|
105 |
-
[chat_history, chatbot, user_txt],
|
106 |
queue=False
|
107 |
)
|
108 |
demo.launch()
|
|
|
100 |
submit_btn.click(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|
101 |
.then(kadi_bot.handle_chat, [chat_history], [chatbot])
|
102 |
clear_btn.click(
|
103 |
+
lambda: ([], [], ""),
|
104 |
None,
|
105 |
+
[chat_history, chatbot, user_txt],
|
106 |
queue=False
|
107 |
)
|
108 |
demo.launch()
|