Spaces:
Running
Running
Don't use red for suggestions.
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ html_out = ''
|
|
100 |
for span in spans:
|
101 |
is_different = span['token'] != span['most_likely_token']
|
102 |
html_out += '<span style="color: {color}" title="{title}">{orig_token}</span>'.format(
|
103 |
-
color="
|
104 |
title=html.escape(span["most_likely_token"]).replace('\n', ' '),
|
105 |
orig_token=html.escape(span["token"]).replace('\n', '<br>')
|
106 |
)
|
|
|
100 |
for span in spans:
|
101 |
is_different = span['token'] != span['most_likely_token']
|
102 |
html_out += '<span style="color: {color}" title="{title}">{orig_token}</span>'.format(
|
103 |
+
color="blue" if is_different else "black",
|
104 |
title=html.escape(span["most_likely_token"]).replace('\n', ' '),
|
105 |
orig_token=html.escape(span["token"]).replace('\n', '<br>')
|
106 |
)
|