Petr Tsvetkov commited on
Commit
bb67cef
1 Parent(s): 2f5bdc0
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -190,7 +190,7 @@ with gr.Blocks(theme=gr.themes.Soft(), head=head_html, css="style_overrides.css"
190
  timestamp = datetime.now().isoformat()
191
  for i, s in enumerate(ndiff(prev_message, message)):
192
  diff = char_diff_obj(s[0], i, s[-1], timestamp)
193
- if diff['type'] in ('+', '-'):
194
  history.append(diff)
195
  return message, history
196
 
 
190
  timestamp = datetime.now().isoformat()
191
  for i, s in enumerate(ndiff(prev_message, message)):
192
  diff = char_diff_obj(s[0], i, s[-1], timestamp)
193
+ if diff['t'] in ('+', '-'):
194
  history.append(diff)
195
  return message, history
196