felixrosberg
commited on
Commit
β’
8d63f3f
1
Parent(s):
9dd5afd
Update app.py
Browse files
app.py
CHANGED
@@ -257,8 +257,8 @@ with gr.Blocks(theme=theme) as blk_demo:
|
|
257 |
with gr.Row():
|
258 |
with gr.Column():
|
259 |
with gr.Box():
|
260 |
-
trg_in = gr.Image(type="pil", label='Target').style(height=300)
|
261 |
-
src_in = gr.Image(type="pil", label='Source').style(height=300)
|
262 |
with gr.Row():
|
263 |
b1 = gr.Button("Face Swap")
|
264 |
with gr.Row():
|
@@ -281,7 +281,7 @@ with gr.Blocks(theme=theme) as blk_demo:
|
|
281 |
with gr.Box():
|
282 |
ano_out = gr.Image(type="pil", label='Output').style(height=300)
|
283 |
|
284 |
-
b1.click(run_inference, inputs=[trg_in, src_in, def_in, mrg_in, chk_in], outputs=
|
285 |
"""iface = gradio.Interface(run_inference,
|
286 |
[gradio.Image(shape=None, type="pil", label='Target'),
|
287 |
gradio.Image(shape=None, type="pil", label='Source'),
|
|
|
257 |
with gr.Row():
|
258 |
with gr.Column():
|
259 |
with gr.Box():
|
260 |
+
trg_in = gr.Image(shape=None, type="pil", label='Target').style(height=300)
|
261 |
+
src_in = gr.Image(shape=None, type="pil", label='Source').style(height=300)
|
262 |
with gr.Row():
|
263 |
b1 = gr.Button("Face Swap")
|
264 |
with gr.Row():
|
|
|
281 |
with gr.Box():
|
282 |
ano_out = gr.Image(type="pil", label='Output').style(height=300)
|
283 |
|
284 |
+
b1.click(run_inference, inputs=[trg_in, src_in, def_in, mrg_in, chk_in], outputs=ano_out)
|
285 |
"""iface = gradio.Interface(run_inference,
|
286 |
[gradio.Image(shape=None, type="pil", label='Target'),
|
287 |
gradio.Image(shape=None, type="pil", label='Source'),
|