Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def main():
|
|
99 |
.then(kadi_bot.handle_chat, [chat_history], [chatbot])
|
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 |
-
|
103 |
demo.launch()
|
104 |
|
105 |
|
|
|
99 |
.then(kadi_bot.handle_chat, [chat_history], [chatbot])
|
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(lambda: ("",), [], [user_txt])
|
103 |
demo.launch()
|
104 |
|
105 |
|