lewtun HF staff commited on
Commit
98f123b
1 Parent(s): b75426e

Wrap HTML again

Browse files
Files changed (1) hide show
  1. app.py +3 -6
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: