acmc commited on
Commit
67daaed
·
verified ·
1 Parent(s): e5dbfbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ For more information, please refer to the research paper: [Creo, Aldan and Shush
54
 
55
  def attack_fn(text, replace_chars, percentage, replace_spaces):
56
  if replace_chars:
57
- text = random_homoglyphs_attack(text=text, percentage=percentage)
58
  if replace_spaces:
59
  text = random_deletion_attack(original_text=text, percentage=percentage)
60
  return text
 
54
 
55
  def attack_fn(text, replace_chars, percentage, replace_spaces):
56
  if replace_chars:
57
+ text = random_homoglyphs_attack(text=text, percentage=percentage, types_of_homoglyphs_to_use=["identical"])
58
  if replace_spaces:
59
  text = random_deletion_attack(original_text=text, percentage=percentage)
60
  return text