Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -199,7 +199,7 @@ if __name__ == "__main__":
|
|
| 199 |
gr.Markdown("<h1 align='center'>Detection and Correction based on Word Importance Ranking (DCWIR) </h1>")
|
| 200 |
gr.Markdown("<h2 align='center'>Clarifications</h2>")
|
| 201 |
gr.Markdown("""
|
| 202 |
-
- This demo has no mechanism to ensure the adversarial example will be correctly repaired by
|
| 203 |
- The adversarial example and corrected adversarial example may be unnatural to read, while it is because the attackers usually generate unnatural perturbations.
|
| 204 |
- All the proposed attacks are Black Box attack where the attacker has no access to the model parameters.
|
| 205 |
""")
|
|
@@ -281,7 +281,7 @@ if __name__ == "__main__":
|
|
| 281 |
output_adv_label = gr.Textbox(label="Predicted Label of the Adversarial Example")
|
| 282 |
with gr.Row():
|
| 283 |
output_repaired_example = gr.Textbox(
|
| 284 |
-
label="Repaired Adversarial Example by
|
| 285 |
)
|
| 286 |
output_repaired_label = gr.Textbox(label="Predicted Label of the Repaired Adversarial Example")
|
| 287 |
|
|
|
|
| 199 |
gr.Markdown("<h1 align='center'>Detection and Correction based on Word Importance Ranking (DCWIR) </h1>")
|
| 200 |
gr.Markdown("<h2 align='center'>Clarifications</h2>")
|
| 201 |
gr.Markdown("""
|
| 202 |
+
- This demo has no mechanism to ensure the adversarial example will be correctly repaired by DCWIR.
|
| 203 |
- The adversarial example and corrected adversarial example may be unnatural to read, while it is because the attackers usually generate unnatural perturbations.
|
| 204 |
- All the proposed attacks are Black Box attack where the attacker has no access to the model parameters.
|
| 205 |
""")
|
|
|
|
| 281 |
output_adv_label = gr.Textbox(label="Predicted Label of the Adversarial Example")
|
| 282 |
with gr.Row():
|
| 283 |
output_repaired_example = gr.Textbox(
|
| 284 |
+
label="Repaired Adversarial Example by DCWIR"
|
| 285 |
)
|
| 286 |
output_repaired_label = gr.Textbox(label="Predicted Label of the Repaired Adversarial Example")
|
| 287 |
|