agiats commited on
Commit
d5d29f3
·
1 Parent(s): 26a0a47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -120,7 +120,7 @@ def create_highlighted_text(
120
  if mean_surprisal is None:
121
  highlighted_text = "<h2><b>" + label + "</b></h2>"
122
  else:
123
- highlighted_text = "<h2><b>" + label + f"</b>(サプライザル平均値: {mean_surprisal})</h2>"
124
  for token, score in tokens2scores:
125
  highlighted_text += highlight_token(token, score)
126
  return highlighted_text
 
120
  if mean_surprisal is None:
121
  highlighted_text = "<h2><b>" + label + "</b></h2>"
122
  else:
123
+ highlighted_text = "<h2><b>" + label + f"</b>(サプライザル平均値: {mean_surprisal:.3f})</h2>"
124
  for token, score in tokens2scores:
125
  highlighted_text += highlight_token(token, score)
126
  return highlighted_text