Spaces:
Runtime error
Runtime error
PFEemp2024
commited on
Commit
·
9ef5340
1
Parent(s):
b4ec5d4
Fixing typeError highlitedText bug
Browse files
app.py
CHANGED
@@ -291,17 +291,17 @@ if __name__ == "__main__":
|
|
291 |
""")
|
292 |
ori_text_diff = gr.HighlightedText(
|
293 |
label="The Original Natural Example",
|
294 |
-
combine_adjacent=
|
295 |
adjacent_separator=" ",
|
296 |
)
|
297 |
adv_text_diff = gr.HighlightedText(
|
298 |
label="Character Editions of Adversarial Example Compared to the Natural Example",
|
299 |
-
combine_adjacent=
|
300 |
adjacent_separator=" ",
|
301 |
)
|
302 |
restored_text_diff = gr.HighlightedText(
|
303 |
label="Character Editions of Repaired Adversarial Example Compared to the Natural Example",
|
304 |
-
combine_adjacent=
|
305 |
adjacent_separator=" ",
|
306 |
)
|
307 |
|
|
|
291 |
""")
|
292 |
ori_text_diff = gr.HighlightedText(
|
293 |
label="The Original Natural Example",
|
294 |
+
combine_adjacent=True,
|
295 |
adjacent_separator=" ",
|
296 |
)
|
297 |
adv_text_diff = gr.HighlightedText(
|
298 |
label="Character Editions of Adversarial Example Compared to the Natural Example",
|
299 |
+
combine_adjacent=True,
|
300 |
adjacent_separator=" ",
|
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 |
adjacent_separator=" ",
|
306 |
)
|
307 |
|