Skip to content

Instantly share code, notes, and snippets.

View wooddar's full-sized avatar

Hugo Darwood wooddar

View GitHub Profile
@wooddar
wooddar / transcribe_voicenote.py
Created December 3, 2024 17:40
Random script to transcribe and summarize long voicenotes
import whisper
import argparse
from openai import OpenAI
"""
Transcribes and summarizes audio files (voice notes) using Whisper and GPT-4.
Examples:
# Full pipeline - transcribe and summarize
python transcribe_voicenote.py audio.m4a
@wooddar
wooddar / multiprocess_selenium.py
Last active April 24, 2025 06:16
Easy Python script to run selenium web workers/browsers in parallel
"""
This is an adaptable example script for using selenium across multiple webbrowsers simultaneously. This makes use of
two queues - one to store idle webworkers and another to store data to pass to any idle webworkers in a selenium function
"""
from multiprocessing import Queue, cpu_count
from threading import Thread
from selenium import webdriver
from time import sleep
from numpy.random import randint