Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,10 @@ def run_scripts(target, source, use_face_enhancer):
|
|
11 |
target_name = os.path.splitext(target_file.name)[1]
|
12 |
timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
|
13 |
output_path1 = "output" + timestamp + target_extension
|
14 |
-
|
15 |
cmd1 = ["python3", "run.py", "-s", source.name, "-t", target_file.name, "-o", output_path1, "--frame-processor", "face_swapper","face_enhancer",'--many-faces']
|
16 |
subprocess.run(cmd1)
|
17 |
outputfile.append(output_path1)
|
18 |
-
|
19 |
return outputfile
|
20 |
|
21 |
iface = gr.Interface(
|
|
|
11 |
target_name = os.path.splitext(target_file.name)[1]
|
12 |
timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
|
13 |
output_path1 = "output" + timestamp + target_extension
|
|
|
14 |
cmd1 = ["python3", "run.py", "-s", source.name, "-t", target_file.name, "-o", output_path1, "--frame-processor", "face_swapper","face_enhancer",'--many-faces']
|
15 |
subprocess.run(cmd1)
|
16 |
outputfile.append(output_path1)
|
17 |
+
print(output_path1)
|
18 |
return outputfile
|
19 |
|
20 |
iface = gr.Interface(
|