adding python-dotenv

pull/27/head
Tom Chapin 11 months ago
parent 9493912034
commit a3537f4a4d

@ -1,3 +1,6 @@
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
import asyncio
import threading
import os

@ -1,3 +1,6 @@
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
import os
import glob
import json

@ -1,3 +1,6 @@
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
import os
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 dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
import os
import json
from interpreter import interpreter

@ -1,3 +1,6 @@
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
from starlette.websockets import WebSocketDisconnect
import ast
import json

@ -2,6 +2,9 @@
Defines a function which takes a path to an audio file and turns it into text.
"""
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
from datetime import datetime
import os
import contextlib

@ -2,6 +2,9 @@
Defines a function which takes text and returns a path to an audio file.
"""
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
import tempfile
from openai import OpenAI
from pydub import AudioSegment

@ -1,3 +1,6 @@
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
import asyncio
import subprocess
import platform

@ -1,3 +1,6 @@
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
import os
import logging

Loading…
Cancel
Save