PFEemp2024 commited on
Commit
8996779
·
1 Parent(s): 927d9eb

Fixing seperators highlitedText bug

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -292,17 +292,21 @@ if __name__ == "__main__":
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
 
308
  gr.Markdown(
 
292
  ori_text_diff = gr.HighlightedText(
293
  label="The Original Natural Example",
294
  combine_adjacent=True,
295
+ theme=gr.themes.Base(),
296
+
297
  )
298
  adv_text_diff = gr.HighlightedText(
299
  label="Character Editions of Adversarial Example Compared to the Natural Example",
300
  combine_adjacent=True,
301
+ show_legend=True,
302
+ theme=gr.themes.Base(),
303
+
304
  )
305
  restored_text_diff = gr.HighlightedText(
306
  label="Character Editions of Repaired Adversarial Example Compared to the Natural Example",
307
  combine_adjacent=True,
308
+ show_legend=True,
309
+ theme=gr.themes.Base(),
310
  )
311
 
312
  gr.Markdown(