Kieran Fraser
commited on
Commit
•
b88aa2b
1
Parent(s):
e847def
Change evaluate button color
Browse filesSigned-off-by: Kieran Fraser <Kieran.Fraser@ibm.com>
app.py
CHANGED
@@ -44,6 +44,7 @@ css = """
|
|
44 |
div.svelte-15lo0d8>*, div.svelte-15lo0d8>.form > * {
|
45 |
min-width: 0px !important;
|
46 |
}
|
|
|
47 |
"""
|
48 |
|
49 |
def sample_CIFAR10():
|
@@ -269,7 +270,7 @@ with gr.Blocks(css=css, theme='Tshackelton/IBMPlex-DenseReadable') as demo:
|
|
269 |
max_iter = gr.Slider(minimum=1, maximum=10, label="Max iterations", value=4)
|
270 |
eps = gr.Slider(minimum=0.0001, maximum=1, label="Epslion", value=0.3)
|
271 |
eps_steps = gr.Slider(minimum=0.0001, maximum=1, label="Epsilon steps", value=0.03)
|
272 |
-
bt_eval_pgd = gr.Button("Evaluate")
|
273 |
|
274 |
# Evaluation Output. Visualisations of success/failures of running evaluation attacks.
|
275 |
with gr.Column(scale=5):
|
@@ -312,7 +313,7 @@ with gr.Blocks(css=css, theme='Tshackelton/IBMPlex-DenseReadable') as demo:
|
|
312 |
y_location = gr.Slider(minimum=1, maximum=32, label="Location (y)", value=1)
|
313 |
patch_height = gr.Slider(minimum=1, maximum=32, label="Patch height", value=12)
|
314 |
patch_width = gr.Slider(minimum=1, maximum=32, label="Patch width", value=12)
|
315 |
-
eval_btn_patch = gr.Button("Evaluate")
|
316 |
|
317 |
# Evaluation Output. Visualisations of success/failures of running evaluation attacks.
|
318 |
with gr.Column(scale=3):
|
|
|
44 |
div.svelte-15lo0d8>*, div.svelte-15lo0d8>.form > * {
|
45 |
min-width: 0px !important;
|
46 |
}
|
47 |
+
.eval-bt { background-color: #3b74f4; color: white; }
|
48 |
"""
|
49 |
|
50 |
def sample_CIFAR10():
|
|
|
270 |
max_iter = gr.Slider(minimum=1, maximum=10, label="Max iterations", value=4)
|
271 |
eps = gr.Slider(minimum=0.0001, maximum=1, label="Epslion", value=0.3)
|
272 |
eps_steps = gr.Slider(minimum=0.0001, maximum=1, label="Epsilon steps", value=0.03)
|
273 |
+
bt_eval_pgd = gr.Button("Evaluate", elem_classes="eval-bt")
|
274 |
|
275 |
# Evaluation Output. Visualisations of success/failures of running evaluation attacks.
|
276 |
with gr.Column(scale=5):
|
|
|
313 |
y_location = gr.Slider(minimum=1, maximum=32, label="Location (y)", value=1)
|
314 |
patch_height = gr.Slider(minimum=1, maximum=32, label="Patch height", value=12)
|
315 |
patch_width = gr.Slider(minimum=1, maximum=32, label="Patch width", value=12)
|
316 |
+
eval_btn_patch = gr.Button("Evaluate", elem_classes="eval-bt")
|
317 |
|
318 |
# Evaluation Output. Visualisations of success/failures of running evaluation attacks.
|
319 |
with gr.Column(scale=3):
|