Update app.py
Browse files
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"{
|
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)
|