Skip to content

Instantly share code, notes, and snippets.

View tadasgedgaudas's full-sized avatar

Tadas Gedgaudas tadasgedgaudas

View GitHub Profile
import time
from openai import OpenAI
import base64
API_KEY="sk-YOUR-KEY"
client = OpenAI(api_key=API_KEY)
response = client.videos.create(
model="sora-2-pro",
from difflib import SequenceMatcher
from transformers import AutoModelForCausalLM, AutoTokenizer
# Blacklist phrases we don't want
blacklisted_answers = ["I'm not sure", "I'm sorry,", "I'm not a "]
def similar(first_string, second_string):
"""
Checks how similar two strings are