From 4348c54a246823e0d31114b73fe66147a13836ce Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:48:28 +0000 Subject: [PATCH 01/55] Bump elevenlabs from 1.3.0 to 1.3.1 Bumps [elevenlabs](https://github.com/elevenlabs/elevenlabs-python) from 1.3.0 to 1.3.1. - [Release notes](https://github.com/elevenlabs/elevenlabs-python/releases) - [Commits](https://github.com/elevenlabs/elevenlabs-python/compare/v1.3.0...v1.3.1) --- updated-dependencies: - dependency-name: elevenlabs dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e6e2e7b..6dcf08f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,6 @@ spacy==3.7.5 torch==2.3.1 transformers==4.41.2 ffmpeg-python==0.2.0 -elevenlabs==1.3.0 +elevenlabs==1.3.1 yt-dlp==2024.5.27 numpy==1.26.4 From fc9a166d39f4ee5ef2adab50bedc15658e08b8eb Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 18 Jun 2024 21:53:48 -0400 Subject: [PATCH 02/55] CHORE: syntactical changes + some pythonic changes and future improvements --- main.py | 17 ++++++++++------- utils/ai_methods.py | 6 +++--- utils/console.py | 2 +- utils/ffmpeg_install.py | 6 +++--- utils/gui_utils.py | 22 ++++++++++++---------- utils/id.py | 10 ++++++---- utils/imagenarator.py | 11 +++++------ utils/settings.py | 4 ++-- video_creation/final_video.py | 7 ++++--- video_creation/screenshot_downloader.py | 3 +-- 10 files changed, 47 insertions(+), 41 deletions(-) diff --git a/main.py b/main.py index 849663d..c2dae3e 100755 --- a/main.py +++ b/main.py @@ -4,7 +4,7 @@ import sys from os import name from pathlib import Path from subprocess import Popen -from typing import NoReturn +from typing import NoReturn, Dict from prawcore import ResponseException @@ -13,7 +13,7 @@ from utils import settings from utils.cleanup import cleanup from utils.console import print_markdown, print_step, print_substep from utils.ffmpeg_install import ffmpeg_install -from utils.id import id +from utils.id import extract_id from utils.version import checkversion from video_creation.background import ( chop_background, @@ -42,11 +42,14 @@ print_markdown( ) checkversion(__VERSION__) +reddit_id: str +reddit_object: Dict[str, str | list] def main(POST_ID=None) -> None: - global redditid, reddit_object + global reddit_id, reddit_object reddit_object = get_subreddit_threads(POST_ID) - redditid = id(reddit_object) + reddit_id = extract_id(reddit_object) + print_substep(f"Thread ID is {reddit_id}", style="bold blue") length, number_of_comments = save_text_to_mp3(reddit_object) length = math.ceil(length) get_screenshots_of_reddit_posts(reddit_object, number_of_comments) @@ -64,15 +67,15 @@ def run_many(times) -> None: for x in range(1, times + 1): print_step( f'on the {x}{("th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th")[x % 10]} iteration of {times}' - ) # correct 1st 2nd 3rd 4th 5th.... + ) main() Popen("cls" if name == "nt" else "clear", shell=True).wait() def shutdown() -> NoReturn: - if "redditid" in globals(): + if "reddit_id" in globals(): print_markdown("## Clearing temp files") - cleanup(redditid) + cleanup(reddit_id) print("Exiting...") sys.exit() diff --git a/utils/ai_methods.py b/utils/ai_methods.py index e628942..6926a71 100644 --- a/utils/ai_methods.py +++ b/utils/ai_methods.py @@ -12,7 +12,7 @@ def mean_pooling(model_output, attention_mask): ) -# This function sort the given threads based on their total similarity with the given keywords +# This function sorts the given threads based on their total similarity with the given keywords def sort_by_similarity(thread_objects, keywords): # Initialize tokenizer + model. tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/all-MiniLM-L6-v2") @@ -34,7 +34,7 @@ def sort_by_similarity(thread_objects, keywords): threads_embeddings = model(**encoded_threads) threads_embeddings = mean_pooling(threads_embeddings, encoded_threads["attention_mask"]) - # Keywords inference + # Keyword inference encoded_keywords = tokenizer(keywords, padding=True, truncation=True, return_tensors="pt") with torch.no_grad(): keywords_embeddings = model(**encoded_keywords) @@ -53,7 +53,7 @@ def sort_by_similarity(thread_objects, keywords): similarity_scores, indices = torch.sort(total_scores, descending=True) - threads_sentences = np.array(threads_sentences)[indices.numpy()] + # threads_sentences = np.array(threads_sentences)[indices.numpy()] thread_objects = np.array(thread_objects)[indices.numpy()].tolist() diff --git a/utils/console.py b/utils/console.py index 18c3248..e940100 100644 --- a/utils/console.py +++ b/utils/console.py @@ -102,7 +102,7 @@ def handle_input( user_input = input("").strip() if check_type is not False: try: - isinstance(eval(user_input), check_type) + isinstance(eval(user_input), check_type) # fixme: remove eval return check_type(user_input) except: console.print( diff --git a/utils/ffmpeg_install.py b/utils/ffmpeg_install.py index b2c673d..b41bad6 100644 --- a/utils/ffmpeg_install.py +++ b/utils/ffmpeg_install.py @@ -28,8 +28,8 @@ def ffmpeg_install_windows(): for root, dirs, files in os.walk(ffmpeg_extracted_folder, topdown=False): for file in files: os.remove(os.path.join(root, file)) - for dir in dirs: - os.rmdir(os.path.join(root, dir)) + for directory in dirs: + os.rmdir(os.path.join(root, directory)) os.rmdir(ffmpeg_extracted_folder) # Extract FFmpeg @@ -110,7 +110,7 @@ def ffmpeg_install(): stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) - except FileNotFoundError as e: + except FileNotFoundError: # Check if there's ffmpeg.exe in the current directory if os.path.exists("./ffmpeg.exe"): print( diff --git a/utils/gui_utils.py b/utils/gui_utils.py index f683adf..31c135f 100644 --- a/utils/gui_utils.py +++ b/utils/gui_utils.py @@ -25,7 +25,9 @@ def get_checks(): # Get current config (from config.toml) as dict -def get_config(obj: dict, done={}): +def get_config(obj: dict, done=None): + if done is None: + done = {} for key in obj.keys(): if not isinstance(obj[key], dict): done[key] = obj[key] @@ -44,13 +46,13 @@ def check(value, checks): if not incorrect and "type" in checks: try: - value = eval(checks["type"])(value) + value = eval(checks["type"])(value) # fixme remove eval except Exception: incorrect = True if ( not incorrect and "options" in checks and value not in checks["options"] - ): # FAILSTATE Value is not one of the options + ): # FAILSTATE Value isn't one of the options incorrect = True if ( not incorrect @@ -59,7 +61,7 @@ def check(value, checks): (isinstance(value, str) and re.match(checks["regex"], value) is None) or not isinstance(value, str) ) - ): # FAILSTATE Value doesn't match regex, or has regex but is not a string. + ): # FAILSTATE Value doesn't match regular expression, or has regular expression but isn't a string. incorrect = True if ( @@ -88,17 +90,17 @@ def check(value, checks): return value -# Modify settings (after form is submitted) +# Modify settings (after the form is submitted) def modify_settings(data: dict, config_load, checks: dict): # Modify config settings - def modify_config(obj: dict, name: str, value: any): + def modify_config(obj: dict, config_name: str, value: any): for key in obj.keys(): - if name == key: + if config_name == key: obj[key] = value elif not isinstance(obj[key], dict): continue else: - modify_config(obj[key], name, value) + modify_config(obj[key], config_name, value) # Remove empty/incorrect key-value pairs data = {key: value for key, value in data.items() if value and key in checks.keys()} @@ -158,7 +160,7 @@ def add_background(youtube_uri, filename, citation, position): youtube_uri = f"https://www.youtube.com/watch?v={regex.group(1)}" - # Check if position is valid + # Check if the position is valid if position == "" or position == "center": position = "center" @@ -178,7 +180,7 @@ def add_background(youtube_uri, filename, citation, position): filename = filename.replace(" ", "_") - # Check if background doesn't already exist + # Check if the background doesn't already exist with open("utils/backgrounds.json", "r", encoding="utf-8") as backgrounds: data = json.load(backgrounds) diff --git a/utils/id.py b/utils/id.py index 3d76593..792d9c9 100644 --- a/utils/id.py +++ b/utils/id.py @@ -1,12 +1,14 @@ import re +from typing import Optional from utils.console import print_substep -def id(reddit_obj: dict): +def extract_id(reddit_obj: dict, field: Optional[str] = "thread_id"): """ This function takes a reddit object and returns the post id """ - id = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"]) - print_substep(f"Thread ID is {id}", style="bold blue") - return id + if field not in reddit_obj.keys(): + raise ValueError(f"Field '{field}' not found in reddit object") + reddit_id = re.sub(r"[^\w\s-]", "", reddit_obj[field]) + return reddit_id diff --git a/utils/imagenarator.py b/utils/imagenarator.py index 509882d..2337ddd 100644 --- a/utils/imagenarator.py +++ b/utils/imagenarator.py @@ -7,6 +7,7 @@ from rich.progress import track from TTS.engine_wrapper import process_text from utils.fonts import getheight, getsize +from utils.id import extract_id def draw_multiple_line_text( @@ -58,18 +59,16 @@ def imagemaker(theme, reddit_obj: dict, txtclr, padding=5, transparent=False) -> Render Images for video """ texts = reddit_obj["thread_post"] - id = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"]) - + reddit_id = extract_id(reddit_obj) if transparent: font = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), 100) else: font = ImageFont.truetype(os.path.join("fonts", "Roboto-Regular.ttf"), 100) + size = (1920, 1080) - - image = Image.new("RGBA", size, theme) - + for idx, text in track(enumerate(texts), "Rendering Image"): image = Image.new("RGBA", size, theme) text = process_text(text, False) draw_multiple_line_text(image, text, font, txtclr, padding, wrap=30, transparent=transparent) - image.save(f"assets/temp/{id}/png/img{idx}.png") + image.save(f"assets/temp/{reddit_id}/png/img{idx}.png") diff --git a/utils/settings.py b/utils/settings.py index 2ebaef3..f6ff75d 100755 --- a/utils/settings.py +++ b/utils/settings.py @@ -30,7 +30,7 @@ def check(value, checks, name): incorrect = True if not incorrect and "type" in checks: try: - value = eval(checks["type"])(value) + value = eval(checks["type"])(value) # fixme remove eval except: incorrect = True @@ -78,7 +78,7 @@ def check(value, checks, name): + str(name) + "[#F7768E bold]=", extra_info=get_check_value("explanation", ""), - check_type=eval(get_check_value("type", "False")), + check_type=eval(get_check_value("type", "False")), # fixme remove eval default=get_check_value("default", NotImplemented), match=get_check_value("regex", ""), err_message=get_check_value("input_error", "Incorrect input"), diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 101d0f7..0118401 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -19,6 +19,7 @@ from utils import settings from utils.cleanup import cleanup from utils.console import print_step, print_substep from utils.fonts import getheight +from utils.id import extract_id from utils.thumbnail import create_thumbnail from utils.videos import save_data @@ -204,7 +205,7 @@ def make_final_video( opacity = settings.config["settings"]["opacity"] - reddit_id = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"]) + reddit_id = extract_id(reddit_obj) allowOnlyTTSFolder: bool = ( settings.config["settings"]["background"]["enable_extra_audio"] @@ -343,8 +344,8 @@ def make_final_video( ) current_time += audio_clips_durations[i] - title = re.sub(r"[^\w\s-]", "", reddit_obj["thread_title"]) - idx = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"]) + title = extract_id(reddit_obj, "thread_title") + idx = extract_id(reddit_obj) title_thumb = reddit_obj["thread_title"] filename = f"{name_normalize(title)[:251]}" diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index 6b56e99..12a844d 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -34,7 +34,7 @@ def get_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: int): # ! Make sure the reddit screenshots folder exists Path(f"assets/temp/{reddit_id}/png").mkdir(parents=True, exist_ok=True) - # set the theme and disable non-essential cookies + # set the theme and turn off non-essential cookies if settings.config["settings"]["theme"] == "dark": cookie_file = open("./video_creation/data/cookie-dark-mode.json", encoding="utf-8") bgcolor = (33, 33, 36, 255) @@ -60,7 +60,6 @@ def get_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: int): transparent = False if storymode and settings.config["settings"]["storymodemethod"] == 1: - # for idx,item in enumerate(reddit_object["thread_post"]): print_substep("Generating images...") return imagemaker( theme=bgcolor, From 9ed8c87b881530c4674f07f5fc26451cf2b35b21 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 01:54:08 +0000 Subject: [PATCH 03/55] fixup: Format Python code with Black --- main.py | 3 ++- utils/console.py | 2 +- utils/imagenarator.py | 4 ++-- utils/settings.py | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index c2dae3e..3b22dd2 100755 --- a/main.py +++ b/main.py @@ -4,7 +4,7 @@ import sys from os import name from pathlib import Path from subprocess import Popen -from typing import NoReturn, Dict +from typing import Dict, NoReturn from prawcore import ResponseException @@ -45,6 +45,7 @@ checkversion(__VERSION__) reddit_id: str reddit_object: Dict[str, str | list] + def main(POST_ID=None) -> None: global reddit_id, reddit_object reddit_object = get_subreddit_threads(POST_ID) diff --git a/utils/console.py b/utils/console.py index e940100..a9abf4b 100644 --- a/utils/console.py +++ b/utils/console.py @@ -102,7 +102,7 @@ def handle_input( user_input = input("").strip() if check_type is not False: try: - isinstance(eval(user_input), check_type) # fixme: remove eval + isinstance(eval(user_input), check_type) # fixme: remove eval return check_type(user_input) except: console.print( diff --git a/utils/imagenarator.py b/utils/imagenarator.py index 2337ddd..ad75331 100644 --- a/utils/imagenarator.py +++ b/utils/imagenarator.py @@ -64,9 +64,9 @@ def imagemaker(theme, reddit_obj: dict, txtclr, padding=5, transparent=False) -> font = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), 100) else: font = ImageFont.truetype(os.path.join("fonts", "Roboto-Regular.ttf"), 100) - + size = (1920, 1080) - + for idx, text in track(enumerate(texts), "Rendering Image"): image = Image.new("RGBA", size, theme) text = process_text(text, False) diff --git a/utils/settings.py b/utils/settings.py index f6ff75d..6b8242b 100755 --- a/utils/settings.py +++ b/utils/settings.py @@ -78,7 +78,7 @@ def check(value, checks, name): + str(name) + "[#F7768E bold]=", extra_info=get_check_value("explanation", ""), - check_type=eval(get_check_value("type", "False")), # fixme remove eval + check_type=eval(get_check_value("type", "False")), # fixme remove eval default=get_check_value("default", NotImplemented), match=get_check_value("regex", ""), err_message=get_check_value("input_error", "Incorrect input"), From 0f98d422ae217b0fcb001301d40151919af80d2f Mon Sep 17 00:00:00 2001 From: RequieMa <57754488+RequieMa@users.noreply.github.com> Date: Wed, 26 Jun 2024 20:35:21 +0800 Subject: [PATCH 04/55] Update elevenlabs.py Change voice_name to name since it seems that elevenlabs changed the attribute name --- TTS/elevenlabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/elevenlabs.py b/TTS/elevenlabs.py index e896621..c1f478e 100644 --- a/TTS/elevenlabs.py +++ b/TTS/elevenlabs.py @@ -35,4 +35,4 @@ class elevenlabs: def randomvoice(self): if self.client is None: self.initialize() - return random.choice(self.client.voices.get_all().voices).voice_name + return random.choice(self.client.voices.get_all().voices).name From 484e0d7fb5df6d5f7aa8e3500e219df7021f2762 Mon Sep 17 00:00:00 2001 From: RequieMa <57754488+RequieMa@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:14:04 +0800 Subject: [PATCH 05/55] Add a dummy random_voice variable function run() in GTTS.py --- TTS/GTTS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/GTTS.py b/TTS/GTTS.py index bff100f..c493d73 100644 --- a/TTS/GTTS.py +++ b/TTS/GTTS.py @@ -10,7 +10,7 @@ class GTTS: self.max_chars = 5000 self.voices = [] - def run(self, text, filepath): + def run(self, text, filepath, random_voice=False): tts = gTTS( text=text, lang=settings.config["reddit"]["thread"]["post_lang"] or "en", From def55c183fbc0d53ebc62533b3533202a4a34836 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 10:48:53 +0000 Subject: [PATCH 06/55] Bump pillow from 10.3.0 to 10.4.0 Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.3.0 to 10.4.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/10.3.0...10.4.0) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6dcf08f..2117fe6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ rich==13.7.1 toml==0.10.2 translators==5.9.2 pyttsx3==2.90 -Pillow==10.3.0 +Pillow==10.4.0 tomlkit==0.12.5 Flask==3.0.3 clean-text==0.6.0 From 36c3c23ae07fc04a6945e806c5ce569cec71d90e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 10:48:59 +0000 Subject: [PATCH 07/55] Bump transformers from 4.41.2 to 4.42.3 Bumps [transformers](https://github.com/huggingface/transformers) from 4.41.2 to 4.42.3. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.41.2...v4.42.3) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6dcf08f..20913a8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ clean-text==0.6.0 unidecode==1.3.8 spacy==3.7.5 torch==2.3.1 -transformers==4.41.2 +transformers==4.42.3 ffmpeg-python==0.2.0 elevenlabs==1.3.1 yt-dlp==2024.5.27 From e5ae5f68e23cac49dfea98d7b5caac270b157662 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:08:32 +0000 Subject: [PATCH 08/55] Bump yt-dlp from 2024.5.27 to 2024.7.2 Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2024.5.27 to 2024.7.2. - [Release notes](https://github.com/yt-dlp/yt-dlp/releases) - [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md) - [Commits](https://github.com/yt-dlp/yt-dlp/compare/2024.05.27...2024.07.02) --- updated-dependencies: - dependency-name: yt-dlp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6dcf08f..77d3636 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ torch==2.3.1 transformers==4.41.2 ffmpeg-python==0.2.0 elevenlabs==1.3.1 -yt-dlp==2024.5.27 +yt-dlp==2024.7.2 numpy==1.26.4 From 02e55db566be59ab10acd2d66290f2fe65d0f422 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:06:56 +0000 Subject: [PATCH 09/55] Bump tomlkit from 0.12.5 to 0.13.0 Bumps [tomlkit](https://github.com/sdispater/tomlkit) from 0.12.5 to 0.13.0. - [Release notes](https://github.com/sdispater/tomlkit/releases) - [Changelog](https://github.com/python-poetry/tomlkit/blob/master/CHANGELOG.md) - [Commits](https://github.com/sdispater/tomlkit/compare/0.12.5...0.13.0) --- updated-dependencies: - dependency-name: tomlkit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2465218..18b34a1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,7 @@ toml==0.10.2 translators==5.9.2 pyttsx3==2.90 Pillow==10.4.0 -tomlkit==0.12.5 +tomlkit==0.13.0 Flask==3.0.3 clean-text==0.6.0 unidecode==1.3.8 From 487c75900d19bad2c203318c42bcfda685ef0fd3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Jul 2024 10:16:19 +0000 Subject: [PATCH 10/55] Bump transformers from 4.42.3 to 4.42.4 Bumps [transformers](https://github.com/huggingface/transformers) from 4.42.3 to 4.42.4. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.42.3...v4.42.4) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2465218..461db92 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ clean-text==0.6.0 unidecode==1.3.8 spacy==3.7.5 torch==2.3.1 -transformers==4.42.3 +transformers==4.42.4 ffmpeg-python==0.2.0 elevenlabs==1.3.1 yt-dlp==2024.7.2 From 109d16e722a480a69b5e299c64d09f2eefa84643 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 13 Jul 2024 22:49:46 +0000 Subject: [PATCH 11/55] Bump elevenlabs from 1.3.1 to 1.4.1 Bumps [elevenlabs](https://github.com/elevenlabs/elevenlabs-python) from 1.3.1 to 1.4.1. - [Release notes](https://github.com/elevenlabs/elevenlabs-python/releases) - [Commits](https://github.com/elevenlabs/elevenlabs-python/compare/v1.3.1...v1.4.1) --- updated-dependencies: - dependency-name: elevenlabs dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 461db92..5013cb5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,6 @@ spacy==3.7.5 torch==2.3.1 transformers==4.42.4 ffmpeg-python==0.2.0 -elevenlabs==1.3.1 +elevenlabs==1.4.1 yt-dlp==2024.7.2 numpy==1.26.4 From 7184da62a87392c0b85c16c9262e0bd37d01855e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 13 Jul 2024 22:56:36 +0000 Subject: [PATCH 12/55] Bump yt-dlp from 2024.7.2 to 2024.7.9 Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2024.7.2 to 2024.7.9. - [Release notes](https://github.com/yt-dlp/yt-dlp/releases) - [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md) - [Commits](https://github.com/yt-dlp/yt-dlp/compare/2024.07.02...2024.07.09) --- updated-dependencies: - dependency-name: yt-dlp dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8012f01..383c1b7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ torch==2.3.1 transformers==4.42.4 ffmpeg-python==0.2.0 elevenlabs==1.4.1 -yt-dlp==2024.7.2 +yt-dlp==2024.7.9 numpy==1.26.4 From 8872b379df23077f7d8550bcf1aae5d2d1aeb7da Mon Sep 17 00:00:00 2001 From: prafful Date: Mon, 15 Jul 2024 00:16:30 +0530 Subject: [PATCH 13/55] updated readme for improved installation --- README.md | 60 +++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e4b7973..1b221db 100644 --- a/README.md +++ b/README.md @@ -37,27 +37,61 @@ The only original thing being done is the editing and gathering of all materials ## Installation 👩‍💻 -1. Clone this repository -2. Run `pip install -r requirements.txt` -3. Run `python -m playwright install` and `python -m playwright install-deps` +1. Clone this repository: + ```sh + git clone https://github.com/elebumm/RedditVideoMakerBot.git + cd RedditVideoMakerBot + ``` + +2. Create and activate a virtual environment: + - On **Windows**: + ```sh + python -m venv venv + venv\Scripts\activate + ``` + - On **macOS and Linux**: + ```sh + python3 -m venv venv + source venv/bin/activate + ``` + +3. Install the required dependencies: + ```sh + pip install -r requirements.txt + ``` + +4. Install Playwright and its dependencies: + ```sh + python -m playwright install + python -m playwright install-deps + ``` + +--- **EXPERIMENTAL!!!!** -On macOS and Linux (debian, arch, fedora and centos, and based on those), you can run an install script that will automatically install steps 1 to 3. (requires bash) + - On macOS and Linux (Debian, Arch, Fedora, CentOS, and based on those), you can run an installation script that will automatically install steps 1 to 3. (requires bash) + - `bash <(curl -sL https://raw.githubusercontent.com/elebumm/RedditVideoMakerBot/master/install.sh)` + - This can also be used to update the installation -`bash <(curl -sL https://raw.githubusercontent.com/elebumm/RedditVideoMakerBot/master/install.sh)` +--- -This can also be used to update the installation +5. Run the bot: + ```sh + python main.py + ``` -4. Run `python main.py` -5. Visit [the Reddit Apps page.](https://www.reddit.com/prefs/apps), and set up an app that is a "script". Paste any URL in redirect URL. Ex:`https://jasoncameron.dev` -6. The bot will ask you to fill in your details to connect to the Reddit API, and configure the bot to your liking -7. Enjoy 😎 -8. If you need to reconfigure the bot, simply open the `config.toml` file and delete the lines that need to be changed. On the next run of the bot, it will help you reconfigure those options. +6. Visit [the Reddit Apps page](https://www.reddit.com/prefs/apps), and set up an app that is a "script". Paste any URL in the redirect URL field, for example: `https://jasoncameron.dev`. -(Note if you got an error installing or running the bot try first rerunning the command with a three after the name e.g. python3 or pip3) +7. The bot will prompt you to fill in your details to connect to the Reddit API and configure the bot to your liking. -If you want to read more detailed guide about the bot, please refer to the [documentation](https://reddit-video-maker-bot.netlify.app/) +8. Enjoy 😎 + +9. If you need to reconfigure the bot, simply open the `config.toml` file and delete the lines that need to be changed. On the next run of the bot, it will help you reconfigure those options. + +(Note: If you encounter any errors installing or running the bot, try using `python3` or `pip3` instead of `python` or `pip`.) + +For a more detailed guide about the bot, please refer to the [documentation](https://reddit-video-maker-bot.netlify.app/). ## Video From aecb7644bef71d6d0c536a1ac6ec5194ebb764f6 Mon Sep 17 00:00:00 2001 From: prafful Date: Mon, 15 Jul 2024 00:50:59 +0530 Subject: [PATCH 14/55] updated to ./venv --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1b221db..8825639 100644 --- a/README.md +++ b/README.md @@ -46,13 +46,13 @@ The only original thing being done is the editing and gathering of all materials 2. Create and activate a virtual environment: - On **Windows**: ```sh - python -m venv venv - venv\Scripts\activate + python -m venv ./venv + .\venv\Scripts\activate ``` - On **macOS and Linux**: ```sh - python3 -m venv venv - source venv/bin/activate + python3 -m venv ./venv + source ./venv/bin/activate ``` 3. Install the required dependencies: From 72994d48ac84b05059dba0b6a4ab502ed6e7406a Mon Sep 17 00:00:00 2001 From: prafful Date: Mon, 15 Jul 2024 12:48:43 +0530 Subject: [PATCH 15/55] updated dockerignore for ignoring results folder --- .dockerignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 1d1fe94..1653ff2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ -Dockerfile \ No newline at end of file +Dockerfile +results \ No newline at end of file From 9cc022f4b578a8348a2e88dea94776b6d7cbecc7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2024 10:48:56 +0000 Subject: [PATCH 16/55] Bump elevenlabs from 1.4.1 to 1.5.0 Bumps [elevenlabs](https://github.com/elevenlabs/elevenlabs-python) from 1.4.1 to 1.5.0. - [Release notes](https://github.com/elevenlabs/elevenlabs-python/releases) - [Commits](https://github.com/elevenlabs/elevenlabs-python/compare/v1.4.1...v1.5.0) --- updated-dependencies: - dependency-name: elevenlabs dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 383c1b7..e3ff49d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,6 @@ spacy==3.7.5 torch==2.3.1 transformers==4.42.4 ffmpeg-python==0.2.0 -elevenlabs==1.4.1 +elevenlabs==1.5.0 yt-dlp==2024.7.9 numpy==1.26.4 From 6c1bf32fc5fba43937277f4dbe26495a6dcad64b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 11:02:04 +0000 Subject: [PATCH 17/55] Bump gtts from 2.5.1 to 2.5.2 Bumps [gtts](https://github.com/pndurette/gTTS) from 2.5.1 to 2.5.2. - [Release notes](https://github.com/pndurette/gTTS/releases) - [Changelog](https://github.com/pndurette/gTTS/blob/main/CHANGELOG.md) - [Commits](https://github.com/pndurette/gTTS/compare/v2.5.1...v2.5.2) --- updated-dependencies: - dependency-name: gtts dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 383c1b7..ee902f8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ boto3==1.34.127 botocore==1.34.127 -gTTS==2.5.1 +gTTS==2.5.2 moviepy==1.0.3 playwright==1.44.0 praw==7.7.1 From 7a2d2c918f155ff66c1917873dc36578e68a0c0f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:32:37 +0000 Subject: [PATCH 18/55] Bump transformers from 4.42.4 to 4.43.2 Bumps [transformers](https://github.com/huggingface/transformers) from 4.42.4 to 4.43.2. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.42.4...v4.43.2) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 383c1b7..e3670a4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ clean-text==0.6.0 unidecode==1.3.8 spacy==3.7.5 torch==2.3.1 -transformers==4.42.4 +transformers==4.43.2 ffmpeg-python==0.2.0 elevenlabs==1.4.1 yt-dlp==2024.7.9 From 45960fceedb69e94ecb3c2caa23a3d1f1cfc3a32 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Jul 2024 02:03:56 +0000 Subject: [PATCH 19/55] Bump yt-dlp from 2024.7.9 to 2024.7.25 Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2024.7.9 to 2024.7.25. - [Release notes](https://github.com/yt-dlp/yt-dlp/releases) - [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md) - [Commits](https://github.com/yt-dlp/yt-dlp/compare/2024.07.09...2024.07.25) --- updated-dependencies: - dependency-name: yt-dlp dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3973312..bbdb409 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ torch==2.3.1 transformers==4.43.2 ffmpeg-python==0.2.0 elevenlabs==1.5.0 -yt-dlp==2024.7.9 +yt-dlp==2024.7.25 numpy==1.26.4 From b8c94f083b4685fdb4b1b10e88cb5d799ab48a41 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Jul 2024 02:04:05 +0000 Subject: [PATCH 20/55] Bump torch from 2.3.1 to 2.4.0 Bumps [torch](https://github.com/pytorch/pytorch) from 2.3.1 to 2.4.0. - [Release notes](https://github.com/pytorch/pytorch/releases) - [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md) - [Commits](https://github.com/pytorch/pytorch/compare/v2.3.1...v2.4.0) --- updated-dependencies: - dependency-name: torch dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3973312..fc9fda3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ Flask==3.0.3 clean-text==0.6.0 unidecode==1.3.8 spacy==3.7.5 -torch==2.3.1 +torch==2.4.0 transformers==4.43.2 ffmpeg-python==0.2.0 elevenlabs==1.5.0 From 25fcf2a5ece4f5abec033b2a4e61f6578600afff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:17:54 +0000 Subject: [PATCH 21/55] Bump elevenlabs from 1.5.0 to 1.7.0 Bumps [elevenlabs](https://github.com/elevenlabs/elevenlabs-python) from 1.5.0 to 1.7.0. - [Release notes](https://github.com/elevenlabs/elevenlabs-python/releases) - [Commits](https://github.com/elevenlabs/elevenlabs-python/compare/v1.5.0...v1.7.0) --- updated-dependencies: - dependency-name: elevenlabs dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 41f2fe5..f7f9364 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,6 @@ spacy==3.7.5 torch==2.4.0 transformers==4.43.2 ffmpeg-python==0.2.0 -elevenlabs==1.5.0 +elevenlabs==1.7.0 yt-dlp==2024.7.25 numpy==1.26.4 From ba2791aa9df17410a6112d9b352b18cbe704a540 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:31:29 +0000 Subject: [PATCH 22/55] Bump tomlkit from 0.13.0 to 0.13.2 Bumps [tomlkit](https://github.com/sdispater/tomlkit) from 0.13.0 to 0.13.2. - [Release notes](https://github.com/sdispater/tomlkit/releases) - [Changelog](https://github.com/python-poetry/tomlkit/blob/master/CHANGELOG.md) - [Commits](https://github.com/sdispater/tomlkit/compare/0.13.0...0.13.2) --- updated-dependencies: - dependency-name: tomlkit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 41f2fe5..9a5d0d7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,7 @@ toml==0.10.2 translators==5.9.2 pyttsx3==2.90 Pillow==10.4.0 -tomlkit==0.13.0 +tomlkit==0.13.2 Flask==3.0.3 clean-text==0.6.0 unidecode==1.3.8 From 1a3a8613d7662274c2cecbbe7130a39c35778e86 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:31:31 +0000 Subject: [PATCH 23/55] Bump gtts from 2.5.2 to 2.5.3 Bumps [gtts](https://github.com/pndurette/gTTS) from 2.5.2 to 2.5.3. - [Release notes](https://github.com/pndurette/gTTS/releases) - [Changelog](https://github.com/pndurette/gTTS/blob/main/CHANGELOG.md) - [Commits](https://github.com/pndurette/gTTS/compare/v2.5.2...v2.5.3) --- updated-dependencies: - dependency-name: gtts dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 41f2fe5..1380f7a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ boto3==1.34.127 botocore==1.34.127 -gTTS==2.5.2 +gTTS==2.5.3 moviepy==1.0.3 playwright==1.44.0 praw==7.7.1 From 8bbabcc54e4b3ec57cb888c4a7adb2c526b33e79 Mon Sep 17 00:00:00 2001 From: "M. Sanaullah" Date: Sun, 18 Aug 2024 01:13:03 +0500 Subject: [PATCH 24/55] Update final_video.py Dynamically change the title card size based on the "Reddit" title lenght --- video_creation/final_video.py | 87 +++++++++++++++++++---------------- 1 file changed, 48 insertions(+), 39 deletions(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 101d0f7..641b6ba 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -108,19 +108,60 @@ def prepare_background(reddit_id: str, W: int, H: int) -> str: return output_path +def get_text_height(draw, text, font, max_width): + lines = textwrap.wrap(text, width=max_width) + total_height = 0 + for line in lines: + _, _, _, height = draw.textbbox((0, 0), line, font=font) + total_height += height + return total_height + def create_fancy_thumbnail(image, text, text_color, padding, wrap=35): + """ + It will take the 1px from the middle of the template and will be resized (stretched) vertically to accommodate the extra height needed for the title. + """ print_step(f"Creating fancy thumbnail for: {text}") font_title_size = 47 font = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), font_title_size) image_width, image_height = image.size - lines = textwrap.wrap(text, width=wrap) - y = ( - (image_height / 2) - - (((getheight(font, text) + (len(lines) * padding) / len(lines)) * len(lines)) / 2) - + 30 - ) + + # Calculate text height to determine new image height draw = ImageDraw.Draw(image) + text_height = get_text_height(draw, text, font, wrap) + lines = textwrap.wrap(text, width=wrap) + # This are -50 to reduce the empty space at the bottom of the image, + # change it as per your requirement if needed otherwise leave it. + new_image_height = image_height + text_height + padding * (len(lines) - 1) - 50 + + # Separate the image into top, middle (1px), and bottom parts + top_part_height = image_height // 2 + middle_part_height = 1 # 1px height middle section + bottom_part_height = image_height - top_part_height - middle_part_height + + top_part = image.crop((0, 0, image_width, top_part_height)) + middle_part = image.crop((0, top_part_height, image_width, top_part_height + middle_part_height)) + bottom_part = image.crop((0, top_part_height + middle_part_height, image_width, image_height)) + + # Stretch the middle part + new_middle_height = new_image_height - top_part_height - bottom_part_height + middle_part = middle_part.resize((image_width, new_middle_height)) + + # Create new image with the calculated height + new_image = Image.new("RGBA", (image_width, new_image_height)) + + # Paste the top, stretched middle, and bottom parts into the new image + new_image.paste(top_part, (0, 0)) + new_image.paste(middle_part, (0, top_part_height)) + new_image.paste(bottom_part, (0, top_part_height + new_middle_height)) + + # Draw the title text on the new image + draw = ImageDraw.Draw(new_image) + y = top_part_height + padding + for line in lines: + draw.text((120, y), line, font=font, fill=text_color, align="left") + y += get_text_height(draw, line, font, wrap) + padding + # Draw the username "PlotPulse" at the specific position username_font = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), 30) draw.text( (205, 825), @@ -130,39 +171,7 @@ def create_fancy_thumbnail(image, text, text_color, padding, wrap=35): align="left", ) - if len(lines) == 3: - lines = textwrap.wrap(text, width=wrap + 10) - font_title_size = 40 - font = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), font_title_size) - y = ( - (image_height / 2) - - (((getheight(font, text) + (len(lines) * padding) / len(lines)) * len(lines)) / 2) - + 35 - ) - elif len(lines) == 4: - lines = textwrap.wrap(text, width=wrap + 10) - font_title_size = 35 - font = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), font_title_size) - y = ( - (image_height / 2) - - (((getheight(font, text) + (len(lines) * padding) / len(lines)) * len(lines)) / 2) - + 40 - ) - elif len(lines) > 4: - lines = textwrap.wrap(text, width=wrap + 10) - font_title_size = 30 - font = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), font_title_size) - y = ( - (image_height / 2) - - (((getheight(font, text) + (len(lines) * padding) / len(lines)) * len(lines)) / 2) - + 30 - ) - - for line in lines: - draw.text((120, y), line, font=font, fill=text_color, align="left") - y += getheight(font, line) + padding - - return image + return new_image def merge_background_audio(audio: ffmpeg, reddit_id: str): From 1eed8997566c4a7b4f3092a875dc4ce1bce1071e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 23 Aug 2024 10:26:08 +0000 Subject: [PATCH 25/55] Bump transformers from 4.43.2 to 4.44.2 Bumps [transformers](https://github.com/huggingface/transformers) from 4.43.2 to 4.44.2. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.43.2...v4.44.2) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 41f2fe5..ca7854f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ clean-text==0.6.0 unidecode==1.3.8 spacy==3.7.5 torch==2.4.0 -transformers==4.43.2 +transformers==4.44.2 ffmpeg-python==0.2.0 elevenlabs==1.5.0 yt-dlp==2024.7.25 From 29ea86214953f52b3cde2f52e7aed1dce7e67e19 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:54:12 +0000 Subject: [PATCH 26/55] Bump pyttsx3 from 2.90 to 2.91 Bumps [pyttsx3](https://github.com/nateshmbhat/pyttsx3) from 2.90 to 2.91. - [Release notes](https://github.com/nateshmbhat/pyttsx3/releases) - [Commits](https://github.com/nateshmbhat/pyttsx3/compare/v.2.90...v2.91) --- updated-dependencies: - dependency-name: pyttsx3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 41f2fe5..17cceb5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ requests==2.32.3 rich==13.7.1 toml==0.10.2 translators==5.9.2 -pyttsx3==2.90 +pyttsx3==2.91 Pillow==10.4.0 tomlkit==0.13.0 Flask==3.0.3 From ff8409d2422de38b5323f70bcdc7a902fa19df39 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:07:31 +0000 Subject: [PATCH 27/55] Bump rich from 13.7.1 to 13.8.0 Bumps [rich](https://github.com/Textualize/rich) from 13.7.1 to 13.8.0. - [Release notes](https://github.com/Textualize/rich/releases) - [Changelog](https://github.com/Textualize/rich/blob/master/CHANGELOG.md) - [Commits](https://github.com/Textualize/rich/compare/v13.7.1...v13.8.0) --- updated-dependencies: - dependency-name: rich dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cbd2c2b..4ef6687 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ playwright==1.44.0 praw==7.7.1 prawcore~=2.3.0 requests==2.32.3 -rich==13.7.1 +rich==13.8.0 toml==0.10.2 translators==5.9.2 pyttsx3==2.91 From 9d8b58fd97dda28f9edd2a14b584d162c6c2b3da Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:38:00 +0000 Subject: [PATCH 28/55] Bump torch from 2.4.0 to 2.4.1 Bumps [torch](https://github.com/pytorch/pytorch) from 2.4.0 to 2.4.1. - [Release notes](https://github.com/pytorch/pytorch/releases) - [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md) - [Commits](https://github.com/pytorch/pytorch/compare/v2.4.0...v2.4.1) --- updated-dependencies: - dependency-name: torch dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cbd2c2b..5e23e8f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ Flask==3.0.3 clean-text==0.6.0 unidecode==1.3.8 spacy==3.7.5 -torch==2.4.0 +torch==2.4.1 transformers==4.44.2 ffmpeg-python==0.2.0 elevenlabs==1.7.0 From d316f0f33022e7faf539878d9f85940b3349c341 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 8 Sep 2024 06:38:11 +0000 Subject: [PATCH 29/55] Bump spacy from 3.7.5 to 3.7.6 Bumps [spacy](https://github.com/explosion/spaCy) from 3.7.5 to 3.7.6. - [Release notes](https://github.com/explosion/spaCy/releases) - [Commits](https://github.com/explosion/spaCy/compare/v3.7.5...release-v3.7.6) --- updated-dependencies: - dependency-name: spacy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9623d8a..1861ad1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,7 +15,7 @@ tomlkit==0.13.2 Flask==3.0.3 clean-text==0.6.0 unidecode==1.3.8 -spacy==3.7.5 +spacy==3.7.6 torch==2.4.1 transformers==4.44.2 ffmpeg-python==0.2.0 From 559bb41943784d5a717a44a3d3a4b7b30710add5 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 8 Sep 2024 06:54:04 +0000 Subject: [PATCH 30/55] fixup: Format Python code with Black --- video_creation/final_video.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 1fa4d4a..85a0c1f 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -117,6 +117,7 @@ def get_text_height(draw, text, font, max_width): total_height += height return total_height + def create_fancy_thumbnail(image, text, text_color, padding, wrap=35): """ It will take the 1px from the middle of the template and will be resized (stretched) vertically to accommodate the extra height needed for the title. @@ -130,7 +131,7 @@ def create_fancy_thumbnail(image, text, text_color, padding, wrap=35): draw = ImageDraw.Draw(image) text_height = get_text_height(draw, text, font, wrap) lines = textwrap.wrap(text, width=wrap) - # This are -50 to reduce the empty space at the bottom of the image, + # This are -50 to reduce the empty space at the bottom of the image, # change it as per your requirement if needed otherwise leave it. new_image_height = image_height + text_height + padding * (len(lines) - 1) - 50 From 134ae6521d8db6ec21e7c8db38d2055523a26e15 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 10:32:38 +0000 Subject: [PATCH 31/55] Bump rich from 13.8.0 to 13.8.1 Bumps [rich](https://github.com/Textualize/rich) from 13.8.0 to 13.8.1. - [Release notes](https://github.com/Textualize/rich/releases) - [Changelog](https://github.com/Textualize/rich/blob/master/CHANGELOG.md) - [Commits](https://github.com/Textualize/rich/compare/v13.8.0...v13.8.1) --- updated-dependencies: - dependency-name: rich dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1861ad1..929662e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ playwright==1.44.0 praw==7.7.1 prawcore~=2.3.0 requests==2.32.3 -rich==13.8.0 +rich==13.8.1 toml==0.10.2 translators==5.9.2 pyttsx3==2.91 From 8be9378eb8d4e70fdef54e1fd564cc99e23e9aeb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:32:14 +0000 Subject: [PATCH 32/55] Bump pyttsx3 from 2.91 to 2.97 Bumps [pyttsx3](https://github.com/nateshmbhat/pyttsx3) from 2.91 to 2.97. - [Release notes](https://github.com/nateshmbhat/pyttsx3/releases) - [Commits](https://github.com/nateshmbhat/pyttsx3/commits) --- updated-dependencies: - dependency-name: pyttsx3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1861ad1..7d0acea 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ requests==2.32.3 rich==13.8.0 toml==0.10.2 translators==5.9.2 -pyttsx3==2.91 +pyttsx3==2.97 Pillow==10.4.0 tomlkit==0.13.2 Flask==3.0.3 From df86befa9841a064c60e77e7f6165427b0492369 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:32:20 +0000 Subject: [PATCH 33/55] Bump elevenlabs from 1.7.0 to 1.8.1 Bumps [elevenlabs](https://github.com/elevenlabs/elevenlabs-python) from 1.7.0 to 1.8.1. - [Release notes](https://github.com/elevenlabs/elevenlabs-python/releases) - [Commits](https://github.com/elevenlabs/elevenlabs-python/compare/v1.7.0...v1.8.1) --- updated-dependencies: - dependency-name: elevenlabs dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1861ad1..e00b46f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,6 @@ spacy==3.7.6 torch==2.4.1 transformers==4.44.2 ffmpeg-python==0.2.0 -elevenlabs==1.7.0 +elevenlabs==1.8.1 yt-dlp==2024.7.25 numpy==1.26.4 From b25f424579924acbfbf376e7d7c6bcb57e26252f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:50:59 +0000 Subject: [PATCH 34/55] Bump yt-dlp from 2024.7.25 to 2024.9.27 Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2024.7.25 to 2024.9.27. - [Release notes](https://github.com/yt-dlp/yt-dlp/releases) - [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md) - [Commits](https://github.com/yt-dlp/yt-dlp/compare/2024.07.25...2024.09.27) --- updated-dependencies: - dependency-name: yt-dlp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index da7f543..f62b9a3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ torch==2.4.1 transformers==4.44.2 ffmpeg-python==0.2.0 elevenlabs==1.8.1 -yt-dlp==2024.7.25 +yt-dlp==2024.9.27 numpy==1.26.4 From eb5700499de82c763e48428340db6f26c85676a6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:51:03 +0000 Subject: [PATCH 35/55] Bump translators from 5.9.2 to 5.9.3 Bumps [translators](https://github.com/UlionTse/translators) from 5.9.2 to 5.9.3. - [Changelog](https://github.com/UlionTse/translators/blob/master/README_history.md) - [Commits](https://github.com/UlionTse/translators/commits) --- updated-dependencies: - dependency-name: translators dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index da7f543..2c5264d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ prawcore~=2.3.0 requests==2.32.3 rich==13.8.1 toml==0.10.2 -translators==5.9.2 +translators==5.9.3 pyttsx3==2.97 Pillow==10.4.0 tomlkit==0.13.2 From 328692e1f2a62af61ac6ce33a6ddda917b119904 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 05:09:50 +0000 Subject: [PATCH 36/55] Bump pyttsx3 from 2.97 to 2.98 Bumps [pyttsx3](https://github.com/nateshmbhat/pyttsx3) from 2.97 to 2.98. - [Release notes](https://github.com/nateshmbhat/pyttsx3/releases) - [Commits](https://github.com/nateshmbhat/pyttsx3/commits) --- updated-dependencies: - dependency-name: pyttsx3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d7be4b5..f8b5a03 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ requests==2.32.3 rich==13.8.1 toml==0.10.2 translators==5.9.3 -pyttsx3==2.97 +pyttsx3==2.98 Pillow==10.4.0 tomlkit==0.13.2 Flask==3.0.3 From a1d425926a941a4ec7a08cfe1c33200be731ae14 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:33:56 +0000 Subject: [PATCH 37/55] Bump rich from 13.8.1 to 13.9.1 Bumps [rich](https://github.com/Textualize/rich) from 13.8.1 to 13.9.1. - [Release notes](https://github.com/Textualize/rich/releases) - [Changelog](https://github.com/Textualize/rich/blob/master/CHANGELOG.md) - [Commits](https://github.com/Textualize/rich/compare/v13.8.1...v13.9.1) --- updated-dependencies: - dependency-name: rich dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d7be4b5..5492a34 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ playwright==1.44.0 praw==7.7.1 prawcore~=2.3.0 requests==2.32.3 -rich==13.8.1 +rich==13.9.1 toml==0.10.2 translators==5.9.3 pyttsx3==2.97 From 12892314a0b9e5c8e912e6a54d9cce4203d1e7be Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 10:31:54 +0000 Subject: [PATCH 38/55] Bump rich from 13.9.1 to 13.9.2 Bumps [rich](https://github.com/Textualize/rich) from 13.9.1 to 13.9.2. - [Release notes](https://github.com/Textualize/rich/releases) - [Changelog](https://github.com/Textualize/rich/blob/master/CHANGELOG.md) - [Commits](https://github.com/Textualize/rich/compare/v13.9.1...v13.9.2) --- updated-dependencies: - dependency-name: rich dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 021d2e7..9ddb97a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ playwright==1.44.0 praw==7.7.1 prawcore~=2.3.0 requests==2.32.3 -rich==13.9.1 +rich==13.9.2 toml==0.10.2 translators==5.9.3 pyttsx3==2.98 From 7991d981768932d15d8047acf963c4dc92ef5590 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:21:45 +0000 Subject: [PATCH 39/55] Bump yt-dlp from 2024.9.27 to 2024.10.7 Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2024.9.27 to 2024.10.7. - [Release notes](https://github.com/yt-dlp/yt-dlp/releases) - [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md) - [Commits](https://github.com/yt-dlp/yt-dlp/compare/2024.09.27...2024.10.07) --- updated-dependencies: - dependency-name: yt-dlp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 021d2e7..c4e5a0c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ torch==2.4.1 transformers==4.44.2 ffmpeg-python==0.2.0 elevenlabs==1.8.1 -yt-dlp==2024.9.27 +yt-dlp==2024.10.7 numpy==1.26.4 From f60b46ccfcfe8ac5b13a8d7df60b9fd3ad54eac9 Mon Sep 17 00:00:00 2001 From: embee Date: Sun, 3 Nov 2024 16:52:43 +0000 Subject: [PATCH 40/55] Update Playwright version requirement, add support for python 3.12.X --- main.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 849663d..3b0cbb6 100755 --- a/main.py +++ b/main.py @@ -79,7 +79,7 @@ def shutdown() -> NoReturn: if __name__ == "__main__": - if sys.version_info.major != 3 or sys.version_info.minor not in [10, 11]: + if sys.version_info.major != 3 or sys.version_info.minor not in [10, 11, 12]: print( "Hey! Congratulations, you've made it so far (which is pretty rare with no Python 3.10). Unfortunately, this program only works on Python 3.10. Please install Python 3.10 and try again." ) diff --git a/requirements.txt b/requirements.txt index e6e2e7b..6dec6c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ boto3==1.34.127 botocore==1.34.127 gTTS==2.5.1 moviepy==1.0.3 -playwright==1.44.0 +playwright==1.48.0 praw==7.7.1 prawcore~=2.3.0 requests==2.32.3 From d483d85834db8b6bfc517bd641338b9654bcbaa0 Mon Sep 17 00:00:00 2001 From: Rodrigo <55567123+rodrigodasilv@users.noreply.github.com> Date: Tue, 5 Nov 2024 20:59:47 -0300 Subject: [PATCH 41/55] Fixed GTTS argument error 'random_voice' --- TTS/engine_wrapper.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/TTS/engine_wrapper.py b/TTS/engine_wrapper.py index 6d498d2..b3f9ac2 100644 --- a/TTS/engine_wrapper.py +++ b/TTS/engine_wrapper.py @@ -144,11 +144,18 @@ class TTSEngine: print("OSError") def call_tts(self, filename: str, text: str): - self.tts_module.run( - text, - filepath=f"{self.path}/{filename}.mp3", - random_voice=settings.config["settings"]["tts"]["random_voice"], - ) + if settings.config["settings"]["tts"]["voice_choice"] == "googletranslate": + # GTTS does not have the argument 'random_voice' + self.tts_module.run( + text, + filepath=f"{self.path}/{filename}.mp3", + ) + else: + self.tts_module.run( + text, + filepath=f"{self.path}/{filename}.mp3", + random_voice=settings.config["settings"]["tts"]["random_voice"], + ) # try: # self.length += MP3(f"{self.path}/{filename}.mp3").info.length # except (MutagenError, HeaderNotFoundError): From 884fe1dbc989ff9eea5e7022560c0ff11c70c1fa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 10:19:48 +0000 Subject: [PATCH 42/55] Bump transformers from 4.44.2 to 4.46.2 Bumps [transformers](https://github.com/huggingface/transformers) from 4.44.2 to 4.46.2. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.44.2...v4.46.2) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 95fa560..cc77738 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ clean-text==0.6.0 unidecode==1.3.8 spacy==3.7.6 torch==2.4.1 -transformers==4.44.2 +transformers==4.46.2 ffmpeg-python==0.2.0 elevenlabs==1.8.1 yt-dlp==2024.10.7 From 2e3d565d0e33c76ef251137056b9d6eb9fade52f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:47:40 +0000 Subject: [PATCH 43/55] Bump gtts from 2.5.3 to 2.5.4 Bumps [gtts](https://github.com/pndurette/gTTS) from 2.5.3 to 2.5.4. - [Release notes](https://github.com/pndurette/gTTS/releases) - [Changelog](https://github.com/pndurette/gTTS/blob/main/CHANGELOG.md) - [Commits](https://github.com/pndurette/gTTS/compare/v2.5.3...v2.5.4) --- updated-dependencies: - dependency-name: gtts dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cc77738..93695a1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ boto3==1.34.127 botocore==1.34.127 -gTTS==2.5.3 +gTTS==2.5.4 moviepy==1.0.3 playwright==1.44.0 praw==7.7.1 From 33bcf58302fa9305de8abdad20217d859dbfcf5a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:47:43 +0000 Subject: [PATCH 44/55] Bump flask from 3.0.3 to 3.1.0 Bumps [flask](https://github.com/pallets/flask) from 3.0.3 to 3.1.0. - [Release notes](https://github.com/pallets/flask/releases) - [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/flask/compare/3.0.3...3.1.0) --- updated-dependencies: - dependency-name: flask dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cc77738..0763196 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ translators==5.9.3 pyttsx3==2.98 Pillow==10.4.0 tomlkit==0.13.2 -Flask==3.0.3 +Flask==3.1.0 clean-text==0.6.0 unidecode==1.3.8 spacy==3.7.6 From eae3d65fa7dd109602204d19c87ac1bcf851f194 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:32:31 +0000 Subject: [PATCH 45/55] Bump praw from 7.7.1 to 7.8.1 Bumps [praw](https://github.com/praw-dev/praw) from 7.7.1 to 7.8.1. - [Release notes](https://github.com/praw-dev/praw/releases) - [Changelog](https://github.com/praw-dev/praw/blob/master/CHANGES.rst) - [Commits](https://github.com/praw-dev/praw/compare/v7.7.1...v7.8.1) --- updated-dependencies: - dependency-name: praw dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9df7d0d..e14db5a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ botocore==1.34.127 gTTS==2.5.4 moviepy==1.0.3 playwright==1.44.0 -praw==7.7.1 +praw==7.8.1 prawcore~=2.3.0 requests==2.32.3 rich==13.9.2 From 59a287d69d8960e996135cc84c2d86910a00e094 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 11:03:06 +0000 Subject: [PATCH 46/55] Bump rich from 13.9.2 to 13.9.4 Bumps [rich](https://github.com/Textualize/rich) from 13.9.2 to 13.9.4. - [Release notes](https://github.com/Textualize/rich/releases) - [Changelog](https://github.com/Textualize/rich/blob/master/CHANGELOG.md) - [Commits](https://github.com/Textualize/rich/compare/v13.9.2...v13.9.4) --- updated-dependencies: - dependency-name: rich dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e14db5a..2ae31a7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ playwright==1.44.0 praw==7.8.1 prawcore~=2.3.0 requests==2.32.3 -rich==13.9.2 +rich==13.9.4 toml==0.10.2 translators==5.9.3 pyttsx3==2.98 From 0caae7884432e8ca989baaee2774b455fa735fe1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:28:39 +0000 Subject: [PATCH 47/55] Bump transformers from 4.46.2 to 4.46.3 Bumps [transformers](https://github.com/huggingface/transformers) from 4.46.2 to 4.46.3. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.46.2...v4.46.3) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ae2cabb..651f10d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ clean-text==0.6.0 unidecode==1.3.8 spacy==3.7.6 torch==2.4.1 -transformers==4.46.2 +transformers==4.46.3 ffmpeg-python==0.2.0 elevenlabs==1.8.1 yt-dlp==2024.10.7 From 3cf1a93d7964ba0bcde0acfb1c323d837bdefbde Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:50:19 +0000 Subject: [PATCH 48/55] Bump yt-dlp from 2024.10.7 to 2024.12.13 Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2024.10.7 to 2024.12.13. - [Release notes](https://github.com/yt-dlp/yt-dlp/releases) - [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md) - [Commits](https://github.com/yt-dlp/yt-dlp/compare/2024.10.07...2024.12.13) --- updated-dependencies: - dependency-name: yt-dlp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 651f10d..d02ee78 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ torch==2.4.1 transformers==4.46.3 ffmpeg-python==0.2.0 elevenlabs==1.8.1 -yt-dlp==2024.10.7 +yt-dlp==2024.12.13 numpy==1.26.4 From 45dda35cda7cc1693ba463ea2ac86c4ec0b6db5f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 10:38:01 +0000 Subject: [PATCH 49/55] Bump spacy from 3.7.6 to 3.8.3 Bumps [spacy](https://github.com/explosion/spaCy) from 3.7.6 to 3.8.3. - [Release notes](https://github.com/explosion/spaCy/releases) - [Commits](https://github.com/explosion/spaCy/compare/release-v3.7.6...release-v3.8.3) --- updated-dependencies: - dependency-name: spacy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 651f10d..4dcd567 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,7 +15,7 @@ tomlkit==0.13.2 Flask==3.1.0 clean-text==0.6.0 unidecode==1.3.8 -spacy==3.7.6 +spacy==3.8.3 torch==2.4.1 transformers==4.46.3 ffmpeg-python==0.2.0 From a7c6679ddeb25609cfcba02c3ea53c94650c8960 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 21:26:01 +0000 Subject: [PATCH 50/55] Bump transformers from 4.46.3 to 4.47.1 Bumps [transformers](https://github.com/huggingface/transformers) from 4.46.3 to 4.47.1. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.46.3...v4.47.1) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 62675c0..7fa7084 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ clean-text==0.6.0 unidecode==1.3.8 spacy==3.8.3 torch==2.4.1 -transformers==4.46.3 +transformers==4.47.1 ffmpeg-python==0.2.0 elevenlabs==1.8.1 yt-dlp==2024.12.13 From 7f2f024c30453bd3d41974d8df546dfd8e83586e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 10:27:51 +0000 Subject: [PATCH 51/55] Bump yt-dlp from 2024.12.13 to 2024.12.23 Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2024.12.13 to 2024.12.23. - [Release notes](https://github.com/yt-dlp/yt-dlp/releases) - [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md) - [Commits](https://github.com/yt-dlp/yt-dlp/compare/2024.12.13...2024.12.23) --- updated-dependencies: - dependency-name: yt-dlp dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 62675c0..860c13b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ torch==2.4.1 transformers==4.46.3 ffmpeg-python==0.2.0 elevenlabs==1.8.1 -yt-dlp==2024.12.13 +yt-dlp==2024.12.23 numpy==1.26.4 From 5b16489525a7c316c48d92b98dfdfb04bf4546ac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:13:30 +0000 Subject: [PATCH 52/55] Bump yt-dlp from 2024.12.23 to 2025.1.12 Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2024.12.23 to 2025.1.12. - [Release notes](https://github.com/yt-dlp/yt-dlp/releases) - [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md) - [Commits](https://github.com/yt-dlp/yt-dlp/compare/2024.12.23...2025.01.12) --- updated-dependencies: - dependency-name: yt-dlp dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 029cd30..eef9fe3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ torch==2.4.1 transformers==4.47.1 ffmpeg-python==0.2.0 elevenlabs==1.8.1 -yt-dlp==2024.12.23 +yt-dlp==2025.1.12 numpy==1.26.4 From 9515b078f2630661275c57dc6f09a653946379b7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:13:35 +0000 Subject: [PATCH 53/55] Bump transformers from 4.47.1 to 4.48.0 Bumps [transformers](https://github.com/huggingface/transformers) from 4.47.1 to 4.48.0. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.47.1...v4.48.0) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 029cd30..b92e97d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ clean-text==0.6.0 unidecode==1.3.8 spacy==3.8.3 torch==2.4.1 -transformers==4.47.1 +transformers==4.48.0 ffmpeg-python==0.2.0 elevenlabs==1.8.1 yt-dlp==2024.12.23 From 4600936add53566a10945c672f94d27990f4f335 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2025 00:03:24 +0000 Subject: [PATCH 54/55] Bump yt-dlp from 2025.1.12 to 2025.1.15 Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2025.1.12 to 2025.1.15. - [Release notes](https://github.com/yt-dlp/yt-dlp/releases) - [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md) - [Commits](https://github.com/yt-dlp/yt-dlp/compare/2025.01.12...2025.01.15) --- updated-dependencies: - dependency-name: yt-dlp dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5f65df3..5a37eae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ torch==2.4.1 transformers==4.48.0 ffmpeg-python==0.2.0 elevenlabs==1.8.1 -yt-dlp==2025.1.12 +yt-dlp==2025.1.15 numpy==1.26.4 From dc76ae6c785bb2adabe33587a0c73507ea60f1c6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 10:25:11 +0000 Subject: [PATCH 55/55] Bump transformers from 4.48.0 to 4.48.1 Bumps [transformers](https://github.com/huggingface/transformers) from 4.48.0 to 4.48.1. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.48.0...v4.48.1) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5a37eae..fcc996d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ clean-text==0.6.0 unidecode==1.3.8 spacy==3.8.3 torch==2.4.1 -transformers==4.48.0 +transformers==4.48.1 ffmpeg-python==0.2.0 elevenlabs==1.8.1 yt-dlp==2025.1.15