Spaces:
Running
Running
Commit
·
8512623
1
Parent(s):
8448fd5
Update chatbot_tab.py
Browse files- tabs/chatbot_tab.py +3 -2
tabs/chatbot_tab.py
CHANGED
@@ -104,9 +104,10 @@ def run():
|
|
104 |
{"messages": input_messages, "language": language},
|
105 |
config,
|
106 |
stream_mode="messages",
|
107 |
-
|
108 |
if isinstance(chunk, AIMessage): # Filter to just model responses
|
109 |
-
st.markdown("<span style='white-space: nowrap;'>"+"
|
|
|
110 |
|
111 |
'''
|
112 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
|
|
104 |
{"messages": input_messages, "language": language},
|
105 |
config,
|
106 |
stream_mode="messages",
|
107 |
+
):
|
108 |
if isinstance(chunk, AIMessage): # Filter to just model responses
|
109 |
+
# st.markdown("<span style='white-space: nowrap;'>"+"/"+chunk.content+"/"+"</span>", unsafe_allow_html=True)
|
110 |
+
st.markdown(chunk.content, unsafe_allow_html=True)
|
111 |
|
112 |
'''
|
113 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|