From 12bc5a058178a18b9099a4e4ca46808759388d3d Mon Sep 17 00:00:00 2001 From: lourenst Date: Tue, 19 Sep 2023 18:32:34 +0200 Subject: [PATCH] fix bug in example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 991ae8d..f2d389f 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ from streamlit.components.v1 import html def on_input_change(): user_input = st.session_state.user_input st.session_state.past.append(user_input) - st.session_state.generated.append("The messages from Bot\nWith new line") + st.session_state.generated.append({"type" : "normal", "data" : "The messages from Bot\nWith new line"}) def on_btn_click(): del st.session_state.past[:]