Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ def run_scripts(target, source, use_face_enhancer):
|
|
7 |
outputfile=[]
|
8 |
for target_file in target :
|
9 |
target_extension = os.path.splitext(target_file.name)[-1]
|
10 |
-
|
11 |
-
output_path1 =
|
12 |
cmd1 = ["python3", "run.py", "-s", source.name, "-t", target_file.name, "-o", output_path1, "--frame-processor", "face_swapper","face_enhancer"]
|
13 |
subprocess.run(cmd1)
|
14 |
outputfile.append(output_path1)
|
|
|
7 |
outputfile=[]
|
8 |
for target_file in target :
|
9 |
target_extension = os.path.splitext(target_file.name)[-1]
|
10 |
+
target_name = os.path.splitext(target_file.name)[1]
|
11 |
+
output_path1 = "output1" +target_name+ target_extension
|
12 |
cmd1 = ["python3", "run.py", "-s", source.name, "-t", target_file.name, "-o", output_path1, "--frame-processor", "face_swapper","face_enhancer"]
|
13 |
subprocess.run(cmd1)
|
14 |
outputfile.append(output_path1)
|