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
# nevertrendbot.py | [email protected] | |
# | |
# Why don't pictures like this ever trend? | |
# | |
# [X] randomly choose premise for image | |
# [X] generate image | |
# [X] post image | |
import os, configparser, random, csv, tweepy | |
import pandas as pd |
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
# venue.py | [email protected] | |
# | |
# watches events sites and reports new events | |
# | |
# [X] get list of sitemaps | |
# [X] parse sitemaps | |
# [X] get existing data from sqlite db | |
# [X] compare listings to existing data from sqlite | |
# [X] save data in sqlite db | |
# [X] make list of new pages |
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 | [email protected] | |
# 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 | [email protected] | |
# | |
# 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 | [email protected] | |
# | |
# 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 | [email protected] | |
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 | [email protected] | |
# 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 |
NewerOlder