Update app.py
Browse files
app.py
CHANGED
|
@@ -81,6 +81,7 @@ html += """
|
|
| 81 |
html += f"""{("β
Congrats!" if sentence_similarity >= 0.65 else "β Sorry!")} These sentences have {100*sentence_similarity}% similarity."""
|
| 82 |
html += """
|
| 83 |
</div>
|
|
|
|
| 84 |
<p id="sent0">"""
|
| 85 |
for token in tokens[0]:
|
| 86 |
html += f"""{' ' if token[0] == ' ' else ''}<span>{token[1:] if token[0] == ' ' else token}</span>"""
|
|
|
|
| 81 |
html += f"""{("β
Congrats!" if sentence_similarity >= 0.65 else "β Sorry!")} These sentences have {100*sentence_similarity}% similarity."""
|
| 82 |
html += """
|
| 83 |
</div>
|
| 84 |
+
<div><small style="color: silver; text-wrap: balance;">Hover over a word from either sentence to see which other tokens are mapped to it.</small></div>
|
| 85 |
<p id="sent0">"""
|
| 86 |
for token in tokens[0]:
|
| 87 |
html += f"""{' ' if token[0] == ' ' else ''}<span>{token[1:] if token[0] == ' ' else token}</span>"""
|