Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ attack_recipes = {
|
|
38 |
|
39 |
def init():
|
40 |
nltk.download("omw-1.4")
|
41 |
-
|
42 |
# if not os.path.exists("TAD-SST2"):
|
43 |
# z = zipfile.ZipFile("checkpoints.zip", "r")
|
44 |
# z.extractall(os.getcwd())
|
@@ -210,7 +210,7 @@ if __name__ == "__main__":
|
|
210 |
with gr.Group():
|
211 |
with gr.Row():
|
212 |
input_dataset = gr.Radio(
|
213 |
-
choices=["SST2", "Amazon", "
|
214 |
value="SST2",
|
215 |
label="Select a testing dataset and an adversarial attacker to generate an adversarial example.",
|
216 |
)
|
|
|
38 |
|
39 |
def init():
|
40 |
nltk.download("omw-1.4")
|
41 |
+
nltk.download('averaged_perceptron_tagger_eng')
|
42 |
# if not os.path.exists("TAD-SST2"):
|
43 |
# z = zipfile.ZipFile("checkpoints.zip", "r")
|
44 |
# z.extractall(os.getcwd())
|
|
|
210 |
with gr.Group():
|
211 |
with gr.Row():
|
212 |
input_dataset = gr.Radio(
|
213 |
+
choices=["SST2", "Amazon", "AGNews10K"],
|
214 |
value="SST2",
|
215 |
label="Select a testing dataset and an adversarial attacker to generate an adversarial example.",
|
216 |
)
|