Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,12 +56,12 @@ demo = gr.Interface(
|
|
56 |
fn=swap_faces,
|
57 |
inputs=[
|
58 |
gr.Image(type="filepath"),
|
59 |
-
gr.Video(),
|
60 |
gr.Checkbox(label="Enhance Face", value=True),
|
61 |
gr.Checkbox(label="Enhance Frame", value=True),
|
62 |
],
|
63 |
outputs=[
|
64 |
-
gr.Video()
|
65 |
],
|
66 |
title="Swap Faces",
|
67 |
allow_flagging="never"
|
|
|
56 |
fn=swap_faces,
|
57 |
inputs=[
|
58 |
gr.Image(type="filepath"),
|
59 |
+
gr.Video(source="upload", type="filepath"),
|
60 |
gr.Checkbox(label="Enhance Face", value=True),
|
61 |
gr.Checkbox(label="Enhance Frame", value=True),
|
62 |
],
|
63 |
outputs=[
|
64 |
+
gr.Video(source="output")
|
65 |
],
|
66 |
title="Swap Faces",
|
67 |
allow_flagging="never"
|