Wrap HTML again
Browse files
app.py
CHANGED
|
@@ -166,16 +166,13 @@ def generate(
|
|
| 166 |
else:
|
| 167 |
history[-1] = output
|
| 168 |
|
| 169 |
-
# chat = [
|
| 170 |
-
# (wrap_html_code(history[i].strip()), wrap_html_code(history[i + 1].strip()))
|
| 171 |
-
# for i in range(0, len(history) - 1, 2)
|
| 172 |
-
# ]
|
| 173 |
-
|
| 174 |
chat = [
|
| 175 |
-
(history[i].strip(), history[i + 1].strip())
|
| 176 |
for i in range(0, len(history) - 1, 2)
|
| 177 |
]
|
| 178 |
|
|
|
|
|
|
|
| 179 |
yield chat, history, user_message, ""
|
| 180 |
|
| 181 |
if HF_TOKEN and do_save:
|
|
|
|
| 166 |
else:
|
| 167 |
history[-1] = output
|
| 168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
chat = [
|
| 170 |
+
(wrap_html_code(history[i].strip()), wrap_html_code(history[i + 1].strip()))
|
| 171 |
for i in range(0, len(history) - 1, 2)
|
| 172 |
]
|
| 173 |
|
| 174 |
+
# chat = [(history[i].strip(), history[i + 1].strip()) for i in range(0, len(history) - 1, 2)]
|
| 175 |
+
|
| 176 |
yield chat, history, user_message, ""
|
| 177 |
|
| 178 |
if HF_TOKEN and do_save:
|