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
from flask import Flask, escape, request | |
from werkzeug.contrib.fixers import ProxyFix | |
from PIL import Image, ImageDraw, ImageFont, ImageChops | |
import numpy as np | |
import io | |
import cairosvg | |
app = Flask(__name__) |
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
#!/usr/bin/env python3 | |
import discord | |
import sqlite3 | |
import datetime | |
import openai | |
import os | |
import tiktoken | |
openai.api_type = "azure" |