From e45e37d1b783bd556d92759c87e1d2d39f10d240 Mon Sep 17 00:00:00 2001 From: Steph <76857455+stef1949@users.noreply.github.com> Date: Thu, 14 Nov 2024 03:24:16 +0000 Subject: [PATCH] Update bot.py Update to package dependencies and re-adding of import commands --- bot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index ee77ab0..c6fa9cb 100644 --- a/bot.py +++ b/bot.py @@ -21,11 +21,16 @@ intents = discord.Intents.default() intents.message_content = True +asr_options = { + "hotwords":None +} + + # Create bot instance with command prefix and intents bot = commands.Bot(command_prefix='!', intents=intents) # Load WhisperX model -model = whisperx.load_model("base", device="cpu", compute_type="int8") +model = whisperx.load_model("base", device="cpu", compute_type="int8", asr_options=asr_options) # Create a ThreadPoolExecutor for parallel processing executor = ThreadPoolExecutor()