Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|