felixrosberg commited on
Commit
ecc21b4
β€’
1 Parent(s): b2b6347

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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.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",
202
  "anonymize",
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,
 
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,