This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |