From 3b106ec405ebde2c27e94e68921aae373eceac0d Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Mon, 29 May 2023 15:27:52 +0530 Subject: [PATCH] show correct output file --- run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 7236bd8..f928768 100644 --- a/run.py +++ b/run.py @@ -89,7 +89,8 @@ def start(): start_processing() create_video(video_name, fps, output_dir) add_audio(current_dir, output_dir, target_path, args['keep_frames'], args['output_file']) - print("\n\nVideo saved as:", current_dir + "/swapped-" + video_name + ".mp4", "\n\n") + save_path = args['output_file'] if args['output_file'] else output_dir + "/" + video_name + ".mp4" + print("\n\nVideo saved as:", save_path, "\n\n") if __name__ == "__main__":