cg-gen-ai / app /config.py
khawir's picture
Update app/config.py
2b80247 verified
raw
history blame
379 Bytes
import os
DATABASE_URL = "sqlite:///data/sql_app.db"
SECRET_KEY = os.environ.get("SECRET_KEY")
ALGORITHM = os.environ.get("ALGORITHM")
ACCESS_TOKEN_EXPIRE_MINUTES = 30000
SUPERUSER_USERNAME = os.environ.get("SUPERUSER_USERNAME")
SUPERUSER_PASSWORD = os.environ.get("SUPERUSER_PASSWORD")
DEVICE = "cuda"
# os.environ['PYTORCH_CUDA_ALLOC_CONF'] = 'expandable_segments:True'