Petr Tsvetkov
commited on
Commit
·
bb67cef
1
Parent(s):
2f5bdc0
Bug fixed
Browse files
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['
|
| 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 |
|