From b318cfee930cb49be232d45a5eaff2704b3b7794 Mon Sep 17 00:00:00 2001 From: onjas Date: Sun, 18 Aug 2024 21:07:10 -0700 Subject: [PATCH] fix: bug in demo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 991ae8d..5c0c0e2 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[:]