mr2along commited on
Commit
bccaf9c
·
verified ·
1 Parent(s): 8d453e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,9 +45,9 @@ def run_scripts(subfolder, source):
45
  target_files = download_from_hf(subfolder)
46
  for target_file in target_files:
47
  target_extension = os.path.splitext(target_file)[-1]
48
- filename = os.path.splitext(target_file)[0]
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", '--many-faces']
52
  subprocess.run(cmd1)
53
  outputfile.append(output_path)
 
45
  target_files = download_from_hf(subfolder)
46
  for target_file in target_files:
47
  target_extension = os.path.splitext(target_file)[-1]
48
+ #filename = os.path.splitext(target_file)[0]
49
  timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
50
+ output_path = f"output_{timestamp}{target_extension}"
51
  cmd1 = ["python3", "run.py", "-s", source.name, "-t", target_file, "-o", output_path, "--frame-processor", "face_swapper", '--many-faces']
52
  subprocess.run(cmd1)
53
  outputfile.append(output_path)