talhaty commited on
Commit
38a67b0
1 Parent(s): d02caa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", output_path2, "--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_path2, "-o", output_path2, "--frame-processor", "face_enhancer"]
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: