Commit
Β·
ecc21b4
1
Parent(s):
b2b6347
Update app.py
Browse files
app.py
CHANGED
|
@@ -194,16 +194,16 @@ Demo is based of recent research from my Ph.D work. Results expects to be publis
|
|
| 194 |
"""
|
| 195 |
|
| 196 |
iface = gradio.Interface(run_inference,
|
| 197 |
-
[gradio.
|
| 198 |
-
gradio.
|
| 199 |
-
gradio.
|
| 200 |
-
gradio.
|
| 201 |
-
gradio.
|
| 202 |
"anonymize",
|
| 203 |
"reconstruction attack",
|
| 204 |
"adversarial defense"],
|
| 205 |
label='Options')],
|
| 206 |
-
|
| 207 |
title="Face Swap",
|
| 208 |
description=description,
|
| 209 |
examples=examples,
|
|
|
|
| 194 |
"""
|
| 195 |
|
| 196 |
iface = gradio.Interface(run_inference,
|
| 197 |
+
[gradio.Image(shape=None, type="pil", label='Target'),
|
| 198 |
+
gradio.Image(shape=None, type="pil", label='Source'),
|
| 199 |
+
gradio.Slider(0, 100, default=100, label="Anonymization ratio (%)"),
|
| 200 |
+
gradio.Slider(0, 100, default=100, label="Adversarial defense ratio (%)"),
|
| 201 |
+
gradio.CheckboxGroup(["compare",
|
| 202 |
"anonymize",
|
| 203 |
"reconstruction attack",
|
| 204 |
"adversarial defense"],
|
| 205 |
label='Options')],
|
| 206 |
+
"image",
|
| 207 |
title="Face Swap",
|
| 208 |
description=description,
|
| 209 |
examples=examples,
|