Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ from PIL import Image
|
|
18 |
def swap_face(source_file, target_file):
|
19 |
|
20 |
source_path = "input.jpg"
|
21 |
-
target_path = "target.
|
22 |
|
23 |
source_image = Image.fromarray(source_file)
|
24 |
source_image.save(source_path)
|
@@ -30,7 +30,7 @@ def swap_face(source_file, target_file):
|
|
30 |
|
31 |
roop.globals.source_path = source_path
|
32 |
roop.globals.target_path = target_path
|
33 |
-
output_path = "output.
|
34 |
roop.globals.output_path = normalize_output_path(
|
35 |
roop.globals.source_path, roop.globals.target_path, output_path
|
36 |
)
|
|
|
18 |
def swap_face(source_file, target_file):
|
19 |
|
20 |
source_path = "input.jpg"
|
21 |
+
target_path = "target.mp4"
|
22 |
|
23 |
source_image = Image.fromarray(source_file)
|
24 |
source_image.save(source_path)
|
|
|
30 |
|
31 |
roop.globals.source_path = source_path
|
32 |
roop.globals.target_path = target_path
|
33 |
+
output_path = "output.mp4"
|
34 |
roop.globals.output_path = normalize_output_path(
|
35 |
roop.globals.source_path, roop.globals.target_path, output_path
|
36 |
)
|