faizaaska517 commited on
Commit
320f116
·
verified ·
1 Parent(s): 8dd18ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,8 +17,8 @@ attack = TextFoolerJin2019.build(model_wrapper)
17
 
18
  #Function to run attack
19
  def run_attack(input_text):
20
- result = attack.attack(input_text, ground_truth_output=1)
21
- return str(result)
22
 
23
  #Gradio UI
24
  gr.Interface(fn=run_attack,
 
17
 
18
  #Function to run attack
19
  def run_attack(input_text):
20
+ result = attack.attack(input_text, ground_truth_output=1)
21
+ return str(result)
22
 
23
  #Gradio UI
24
  gr.Interface(fn=run_attack,