Spaces:
Running
Running
Update app.py
Browse files11 unmodified lines121314151617181920212211 unmodified linesif not use_face_enhancer:# Run both scriptscmd1 = ["python3", "run.py", "-s", source.name, "-t", target.name, "-o", output_path1, "--frame-processor", "face_swapper"]subprocess.run(cmd1)# Run the second scriptcmd2 = ["python3", "run.py", "-t", target.name if use_face_enhancer else output_path1, "-o", output_path2, "--frame-processor", "face_enhancer"]subprocess.run(cmd2)if not use_face_enhancer:11 unmodified lines121314151617181920212211 unmodified linesif not use_face_enhancer:# Run both scriptscmd1 = ["python3", "run.py", "-s", source.name, "-t", target.name, "-o", output_path2, "--frame-processor", "face_swapper"]subprocess.run(cmd1)# Run the second scriptcmd2 = ["python3", "run.py", "-t", target.name if use_face_enhancer else output_path2, "-o", output_path2, "--frame-processor", "face_enhancer"]subprocess.run(cmd2)if not use_face_enhancer:
app.py+2-2