Spaces:
Sleeping
Sleeping
File size: 523 Bytes
4dc8f4b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from os import getenv, chdir
from os.path import dirname
from tempfile import gettempdir
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
# switch to the project directory
PROJECT_PATH = dirname(__file__)
chdir(PROJECT_PATH)
# load environment variables
DEFAULT_MODEL_LANGUAGE = getenv("DEFAULT_MODEL_LANGUAGE")
DEFAULT_MODEL = getenv("DEFAULT_MODEL")
DEFAULT_LANGUAGE = getenv("DEFAULT_LANGUAGE")
TEMP_PATH = Path(gettempdir())
OUTPUT_PATH = Path(getenv("OUTPUT_PATH"))
DEVICE=int(getenv("DEVICE"))
|