From 51a170a7ebed92986cd0d4e5d2a0710ea31702a1 Mon Sep 17 00:00:00 2001 From: Xavi Vinaixa Date: Mon, 5 Jun 2023 08:29:47 +0200 Subject: [PATCH] Compatibility with Google Colab --- refacer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refacer.py b/refacer.py index 9a92a02..946eccc 100644 --- a/refacer.py +++ b/refacer.py @@ -51,7 +51,7 @@ class Refacer: return replacements def __convert_video(self,video_path,output_video_path): - new_path = output_video_path + random.randint(0,999) + "_c.mp4" + new_path = output_video_path + str(random.randint(0,999)) + "_c.mp4" #stream = ffmpeg.input(output_video_path) in1 = ffmpeg.input(output_video_path) in2 = ffmpeg.input(video_path)