Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,6 +100,11 @@ 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(clear_history, inputs = [chat_history], outputs =chat_history)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
demo.launch()
|
| 104 |
|
| 105 |
|
|
|
|
| 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(clear_history, inputs = [chat_history], outputs =chat_history)
|
| 103 |
+
clear_button.click(
|
| 104 |
+
lambda _: 0,
|
| 105 |
+
[chat_history],
|
| 106 |
+
[chat_history],
|
| 107 |
+
)
|
| 108 |
demo.launch()
|
| 109 |
|
| 110 |
|