Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
Update to package dependencies and re-adding of import commands
  • Loading branch information
stef1949 authored Nov 14, 2024
1 parent f60a4d0 commit e45e37d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e45e37d

Please sign in to comment.