dalexanderch commited on
Commit
2a45c40
·
1 Parent(s): 23e254b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -182,11 +182,11 @@ demo = gr.Interface(
182
  fn=fn,
183
  allow_flagging="never",
184
  title="Adversarial attack demonstration",
185
- description="A random image from the chosen dataset will be perturbated with the chosen attack type and both the original image and the perturbated image will be displayed.The Epsilon parameter is an integer in the range [0, 255] that controls the aggressiveness of the attack.",
186
  inputs=[
187
  gr.Radio(choices=["MNIST", "CIFAR10"], label="Dataset"),
188
  gr.Radio(choices=["FGSM", "I-FGSM", "I-LL-FGSM"], label="Attack"),
189
- gr.Number(value=15, label="Epsilon"),
190
  ],
191
  outputs=[
192
  gr.Image(label="Original Image").style(height=256,width=256),
 
182
  fn=fn,
183
  allow_flagging="never",
184
  title="Adversarial attack demonstration",
185
+ description="A random image from the chosen dataset will be perturbated with the chosen attack type and both the original image and the perturbated image will be displayed. The Epsilon parameter controls the aggressiveness of the attack.",
186
  inputs=[
187
  gr.Radio(choices=["MNIST", "CIFAR10"], label="Dataset"),
188
  gr.Radio(choices=["FGSM", "I-FGSM", "I-LL-FGSM"], label="Attack"),
189
+ gr.Slider(value=15, minimum=0, maximum=255, step=1, label="Epsilon"),
190
  ],
191
  outputs=[
192
  gr.Image(label="Original Image").style(height=256,width=256),