Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,11 +12,11 @@ def run_scripts(target, source, use_face_enhancer):
|
|
12 |
|
13 |
if not use_face_enhancer:
|
14 |
# Run both scripts
|
15 |
-
cmd1 = ["python3", "run.py", "-s", source.name, "-t", target.name, "-o",
|
16 |
subprocess.run(cmd1)
|
17 |
|
18 |
# Run the second script
|
19 |
-
cmd2 = ["python3", "run.py", "-t", target.name if use_face_enhancer else
|
20 |
subprocess.run(cmd2)
|
21 |
|
22 |
if not use_face_enhancer:
|
|
|
12 |
|
13 |
if not use_face_enhancer:
|
14 |
# Run both scripts
|
15 |
+
cmd1 = ["python3", "run.py", "-s", source.name, "-t", target.name, "-o", output_path1, "--frame-processor", "face_swapper"]
|
16 |
subprocess.run(cmd1)
|
17 |
|
18 |
# Run the second script
|
19 |
+
cmd2 = ["python3", "run.py", "-t", target.name if use_face_enhancer else output_path1, "-o", output_path2, "--frame-processor", "face_enhancer"]
|
20 |
subprocess.run(cmd2)
|
21 |
|
22 |
if not use_face_enhancer:
|