This file contains 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
# goat2meeting.py | jeffehobbs@gmail.com | |
# waste the caller's time | |
import os, configparser | |
from flask import Flask | |
from twilio.twiml.voice_response import VoiceResponse | |
from openai import OpenAI | |
SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__)) | |
config = configparser.ConfigParser() |
This file contains 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
# owl.py | jhobbs@advance.net | |
# | |
# GOAL: upload a PDF, convert it to an image, and perform OpenAI vision capabilities on the image | |
# | |
# TO DO: | |
# 1. [X] upload PDF or image | |
# 2. [X] change PDF to image | |
# 3. [X] upload default prompt | |
# 4. [X] perform vision API call | |
# 5. [X] splat response back to client |
This file contains 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
# rando | jeffehobbs@gmail.com | |
# | |
# a code sample to demonstrate random sampling to estimate large numbers | |
import random | |
# globals | |
LARGE_NUMBER = 1000000 | |
CHANCE = 20 # as in "1 in 20" |
This file contains 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 ollama | |
import hashlib | |
from pydub import AudioSegment | |
import torch | |
import torchaudio | |
from einops import rearrange | |
from stable_audio_tools import get_pretrained_model | |
from stable_audio_tools.inference.generation import generate_diffusion_cond |
This file contains 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
[ | |
"Abbeville", | |
"Aberdeen", | |
"Ackerman", | |
"Algoma", | |
"Alligator", | |
"Amory", | |
"Anguilla", | |
"Arcola", | |
"Artesia", |
This file contains 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
[ | |
"Abbott", | |
"Abernathy", | |
"Abilene", | |
"Ackerly", | |
"Addison", | |
"Adrian", | |
"Agua Dulce", | |
"Alamo", | |
"Alamo Heights", |
This file contains 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
# dallewood | jeffehobbs@gmail.com | |
import typer, configparser, os, shutil, requests, hashlib, openai | |
from tqdm import tqdm | |
app = typer.Typer() | |
OUTPUT_DIR = '/output' | |
OUTPUT_PROMPT_PREFIX = '' | |
# generate image from post text |
This file contains 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
# ariseCthulhuBot.py | jeffehobbs@gmail.com | |
# taking the Great Tweets and sending them through the | |
# Lovecraftian-chaotic wheat thresher of the "bark" TTS library | |
# in order to summon The Old Ones | |
# | |
# to-do: | |
# | |
# 1. [X] get a CLASSIC tweet | |
# 2. [X] make a music intro | |
# 3. [X] make a text tweet |
This file contains 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
Equipment for BirdNet | |
— | |
SUMMARY: You’ll need a decent Raspberry Pi, a case, a microSD card, a decent USB mic, a longish USB cable | |
and a decent power supply. It’ll run you about $150. | |
COMPUTER: RASPBERRY PI 4, 4GB ($55) | |
I’m using this, it works great. $55. | |
https://www.adafruit.com/product/4296 |
This file contains 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
# radiodreambot | jeffehobbs@gmail.com | |
# record radio, transcribe it, make art | |
import requests, os, shutil, configparser, datetime, time, multiprocessing, openai, tweepy | |
from mastodon import Mastodon | |
from faster_whisper import WhisperModel | |
STREAM_URL = 'https://live.wostreaming.net/direct/saga-wrsifmaac-ibc2' | |
LOCAL_STREAM_OUTPUT_DIRECTORY = '/tmp/' | |
RUN_TIME = 60 |
NewerOlder