PFEemp2024 commited on
Commit
b4ec5d4
·
1 Parent(s): 0d26b1d

Fixing typeError highlitedText bug

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- 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=False,
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=False,
305
- highlight_words=True,
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(