Spaces:
Runtime error
Runtime error
Commit
Β·
b2b6347
1
Parent(s):
c46bfbb
Update app.py
Browse files
app.py
CHANGED
|
@@ -194,8 +194,8 @@ 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.inputs.Image(shape=None, label='Target'),
|
| 198 |
-
gradio.inputs.Image(shape=None, label='Source'),
|
| 199 |
gradio.inputs.Slider(0, 100, default=100, label="Anonymization ratio (%)"),
|
| 200 |
gradio.inputs.Slider(0, 100, default=100, label="Adversarial defense ratio (%)"),
|
| 201 |
gradio.inputs.CheckboxGroup(["compare",
|
|
@@ -203,7 +203,7 @@ iface = gradio.Interface(run_inference,
|
|
| 203 |
"reconstruction attack",
|
| 204 |
"adversarial defense"],
|
| 205 |
label='Options')],
|
| 206 |
-
gradio.outputs.Image(),
|
| 207 |
title="Face Swap",
|
| 208 |
description=description,
|
| 209 |
examples=examples,
|
|
|
|
| 194 |
"""
|
| 195 |
|
| 196 |
iface = gradio.Interface(run_inference,
|
| 197 |
+
[gradio.inputs.Image(shape=None, type="pil", label='Target'),
|
| 198 |
+
gradio.inputs.Image(shape=None, type="pil", label='Source'),
|
| 199 |
gradio.inputs.Slider(0, 100, default=100, label="Anonymization ratio (%)"),
|
| 200 |
gradio.inputs.Slider(0, 100, default=100, label="Adversarial defense ratio (%)"),
|
| 201 |
gradio.inputs.CheckboxGroup(["compare",
|
|
|
|
| 203 |
"reconstruction attack",
|
| 204 |
"adversarial defense"],
|
| 205 |
label='Options')],
|
| 206 |
+
gradio.outputs.Image(type="pil"),
|
| 207 |
title="Face Swap",
|
| 208 |
description=description,
|
| 209 |
examples=examples,
|