@ -1,3 +1,6 @@
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
import asyncio
import threading
import os
import glob
import json
import subprocess
from pathlib import Path
@ -2,6 +2,10 @@
Exposes a SSE streaming server endpoint at /run, which recieves language and code,
and streams the output.
"""
from interpreter import interpreter
from starlette.websockets import WebSocketDisconnect
import ast
@ -2,6 +2,9 @@
Defines a function which takes a path to an audio file and turns it into text.
from datetime import datetime
import contextlib
Defines a function which takes text and returns a path to an audio file.
import tempfile
from openai import OpenAI
from pydub import AudioSegment
import platform
import logging