Spaces:
Runtime error
Runtime error
PFEemp2024
commited on
Commit
•
dca04a7
1
Parent(s):
bf65c91
Fixing seperators highlitedText bug
Browse files
app.py
CHANGED
@@ -292,8 +292,7 @@ if __name__ == "__main__":
|
|
292 |
ori_text_diff = gr.HighlightedText(
|
293 |
label="The Original Natural Example",
|
294 |
combine_adjacent=True,
|
295 |
-
|
296 |
-
|
297 |
)
|
298 |
adv_text_diff = gr.HighlightedText(
|
299 |
label="Character Editions of Adversarial Example Compared to the Natural Example",
|
@@ -305,7 +304,6 @@ if __name__ == "__main__":
|
|
305 |
label="Character Editions of Repaired Adversarial Example Compared to the Natural Example",
|
306 |
combine_adjacent=True,
|
307 |
show_legend=True,
|
308 |
-
color_map={"+": "red", "-": "green"},
|
309 |
)
|
310 |
|
311 |
gr.Markdown(
|
|
|
292 |
ori_text_diff = gr.HighlightedText(
|
293 |
label="The Original Natural Example",
|
294 |
combine_adjacent=True,
|
295 |
+
show_legend=True,
|
|
|
296 |
)
|
297 |
adv_text_diff = gr.HighlightedText(
|
298 |
label="Character Editions of Adversarial Example Compared to the Natural Example",
|
|
|
304 |
label="Character Editions of Repaired Adversarial Example Compared to the Natural Example",
|
305 |
combine_adjacent=True,
|
306 |
show_legend=True,
|
|
|
307 |
)
|
308 |
|
309 |
gr.Markdown(
|