Spaces:
Runtime error
Runtime error
Commit
·
18b7cae
1
Parent(s):
dca04a7
adding table explanation
Browse files
app.py
CHANGED
|
@@ -316,9 +316,11 @@ if __name__ == "__main__":
|
|
| 316 |
label="Adversarial Example Detection Result"
|
| 317 |
)
|
| 318 |
gr.Markdown(
|
| 319 |
-
"
|
| 320 |
-
|
| 321 |
-
|
|
|
|
|
|
|
| 322 |
)
|
| 323 |
with gr.Column():
|
| 324 |
with gr.Group():
|
|
@@ -326,10 +328,13 @@ if __name__ == "__main__":
|
|
| 326 |
label="Correction Classification Result"
|
| 327 |
)
|
| 328 |
gr.Markdown(
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
|
|
|
|
|
|
|
|
|
| 333 |
)
|
| 334 |
|
| 335 |
# Bind functions to buttons
|
|
|
|
| 316 |
label="Adversarial Example Detection Result"
|
| 317 |
)
|
| 318 |
gr.Markdown(
|
| 319 |
+
"""
|
| 320 |
+
- The is_adversarial field indicates if an adversarial example is detected.
|
| 321 |
+
- The perturbed_label is the predicted label of the adversarial example.
|
| 322 |
+
- The confidence field represents the ratio of Inverted samples among the total number of generated candidates.
|
| 323 |
+
"""
|
| 324 |
)
|
| 325 |
with gr.Column():
|
| 326 |
with gr.Group():
|
|
|
|
| 328 |
label="Correction Classification Result"
|
| 329 |
)
|
| 330 |
gr.Markdown(
|
| 331 |
+
"""
|
| 332 |
+
- If is_corrected=true, it has been Corrected by DCWIR.
|
| 333 |
+
- The pred_label field indicates the standard classification result.
|
| 334 |
+
- The confidence field represents ratio of the dominant class among all Inverted candidates.
|
| 335 |
+
- The is_correct field indicates whether the predicted label is correct.
|
| 336 |
+
|
| 337 |
+
"""
|
| 338 |
)
|
| 339 |
|
| 340 |
# Bind functions to buttons
|