Spaces:
Runtime error
Runtime error
Commit
·
e955af2
1
Parent(s):
497045f
highlighting deleted/added words
Browse files
app.py
CHANGED
|
@@ -290,20 +290,20 @@ if __name__ == "__main__":
|
|
| 290 |
<p align='center'>The (+) and (-) in the boxes indicate the added and deleted characters in the adversarial example compared to the original input natural example.</p>
|
| 291 |
""")
|
| 292 |
ori_text_diff = gr.HighlightedText(
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
|
| 308 |
gr.Markdown(
|
| 309 |
"## <h2 align='center'>The Output of Reactive Perturbation Defocusing</p>"
|
|
|
|
| 290 |
<p align='center'>The (+) and (-) in the boxes indicate the added and deleted characters in the adversarial example compared to the original input natural example.</p>
|
| 291 |
""")
|
| 292 |
ori_text_diff = gr.HighlightedText(
|
| 293 |
+
label="The Original Natural Example",
|
| 294 |
+
combine_adjacent=True,
|
| 295 |
+
highlight_words=True,
|
| 296 |
+
)
|
| 297 |
+
adv_text_diff = gr.HighlightedText(
|
| 298 |
+
label="Character Editions of Adversarial Example Compared to the Natural Example",
|
| 299 |
+
combine_adjacent=True,
|
| 300 |
+
highlight_words=True,
|
| 301 |
+
)
|
| 302 |
+
restored_text_diff = gr.HighlightedText(
|
| 303 |
+
label="Character Editions of Repaired Adversarial Example Compared to the Natural Example",
|
| 304 |
+
combine_adjacent=True,
|
| 305 |
+
highlight_words=True,
|
| 306 |
+
)
|
| 307 |
|
| 308 |
gr.Markdown(
|
| 309 |
"## <h2 align='center'>The Output of Reactive Perturbation Defocusing</p>"
|