mr2along commited on
Commit
2ccff13
·
verified ·
1 Parent(s): 760b730

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def run_scripts(subfolder, source):
47
  target_extension = os.path.splitext(target_file)[-1]
48
  filename = os.path.basename(target_file)
49
  timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
50
- output_path = f"{filename}{timestamp}{target_extension}"
51
  cmd1 = ["python3", "run.py", "-s", source.name, "-t", target_file, "-o", output_path, "--frame-processor", "face_swapper", "face_enhancer", '--many-faces']
52
  subprocess.run(cmd1)
53
  outputfile.append(output_path)
 
47
  target_extension = os.path.splitext(target_file)[-1]
48
  filename = os.path.basename(target_file)
49
  timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
50
+ output_path = f"{filename}_{timestamp}{target_extension}"
51
  cmd1 = ["python3", "run.py", "-s", source.name, "-t", target_file, "-o", output_path, "--frame-processor", "face_swapper", "face_enhancer", '--many-faces']
52
  subprocess.run(cmd1)
53
  outputfile.append(output_path)