Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,6 @@ def swap_faces(source_image_path, target_image_path, enhance_face=True, enhance_
|
|
28 |
'-s', source_image_path,
|
29 |
'-t', target_image_path,
|
30 |
'-o', output_image_path,
|
31 |
-
'--output-image-quality', '80',
|
32 |
'--execution-providers', provider,
|
33 |
# '--face-detector-model', 'yunet',
|
34 |
'--face-analyser-order', 'large-small',
|
@@ -57,15 +56,12 @@ demo = gr.Interface(
|
|
57 |
fn=swap_faces,
|
58 |
inputs=[
|
59 |
gr.Image(type="filepath"),
|
60 |
-
gr.
|
61 |
gr.Checkbox(label="Enhance Face", value=True),
|
62 |
gr.Checkbox(label="Enhance Frame", value=True),
|
63 |
],
|
64 |
outputs=[
|
65 |
-
gr.Video(
|
66 |
-
type="filepath",
|
67 |
-
show_download_button=True,
|
68 |
-
)
|
69 |
],
|
70 |
title="Swap Faces",
|
71 |
allow_flagging="never"
|
|
|
28 |
'-s', source_image_path,
|
29 |
'-t', target_image_path,
|
30 |
'-o', output_image_path,
|
|
|
31 |
'--execution-providers', provider,
|
32 |
# '--face-detector-model', 'yunet',
|
33 |
'--face-analyser-order', 'large-small',
|
|
|
56 |
fn=swap_faces,
|
57 |
inputs=[
|
58 |
gr.Image(type="filepath"),
|
59 |
+
gr.File(type="filepath"),
|
60 |
gr.Checkbox(label="Enhance Face", value=True),
|
61 |
gr.Checkbox(label="Enhance Frame", value=True),
|
62 |
],
|
63 |
outputs=[
|
64 |
+
gr.Video(type="filepath")
|
|
|
|
|
|
|
65 |
],
|
66 |
title="Swap Faces",
|
67 |
allow_flagging="never"
|