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