Spaces:
Sleeping
Sleeping
fixing error
Browse files- chatbot.py +1 -2
chatbot.py
CHANGED
|
@@ -133,8 +133,7 @@ def render_chatbot(code, input, output, error):
|
|
| 133 |
st.markdown(f'<div class="chat-message user-message">{escape(q)}</div>', unsafe_allow_html=True)
|
| 134 |
|
| 135 |
def format_response(txt):
|
| 136 |
-
parts = txt.split('
|
| 137 |
-
')
|
| 138 |
result = ''
|
| 139 |
for j, part in enumerate(parts):
|
| 140 |
if j % 2 == 1:
|
|
|
|
| 133 |
st.markdown(f'<div class="chat-message user-message">{escape(q)}</div>', unsafe_allow_html=True)
|
| 134 |
|
| 135 |
def format_response(txt):
|
| 136 |
+
parts = txt.split('')
|
|
|
|
| 137 |
result = ''
|
| 138 |
for j, part in enumerate(parts):
|
| 139 |
if j % 2 == 1:
|