kcarnold commited on
Commit
58552f2
1 Parent(s): 88c770b

Don't use red for suggestions.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="red" 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
  )
 
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
  )