Update app.py
Browse files
app.py
CHANGED
@@ -25,9 +25,9 @@ def run_scripts(target, source, use_face_enhancer):
|
|
25 |
cmd1 = ["python3", "run.py", "-s", source.name, "-t", target_file.name, "-o", output_path1, "--frame-processor", "face_swapper","face_enhancer",'--many-faces']
|
26 |
subprocess.run(cmd1)
|
27 |
outputfile.append(output_path1)
|
28 |
-
|
29 |
-
|
30 |
-
bot.send_photo("-4283513911", photo=open(Path(output_path1.name), 'rb'))
|
31 |
zipf.write(output_path1)
|
32 |
#bot.send_photo("-4283513911", photo=open(outputfile, 'rb'))
|
33 |
return zip_filename
|
|
|
25 |
cmd1 = ["python3", "run.py", "-s", source.name, "-t", target_file.name, "-o", output_path1, "--frame-processor", "face_swapper","face_enhancer",'--many-faces']
|
26 |
subprocess.run(cmd1)
|
27 |
outputfile.append(output_path1)
|
28 |
+
print(output_path1)
|
29 |
+
print(source)
|
30 |
+
#bot.send_photo("-4283513911", photo=open(Path(output_path1.name), 'rb'))
|
31 |
zipf.write(output_path1)
|
32 |
#bot.send_photo("-4283513911", photo=open(outputfile, 'rb'))
|
33 |
return zip_filename
|