mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-11 13:08:35 +03:00
17 lines
313 B
Python
17 lines
313 B
Python
import sys
|
|
|
|
from pydantic import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
API_SECRET: str
|
|
DATABASE_URI: str
|
|
ENVIRONMENT: str
|
|
REDIS_URI: str
|
|
|
|
|
|
if "pytest" in sys.modules:
|
|
settings = Settings(_env_file=".env.test", _env_file_encoding="utf-8") # type: ignore
|
|
else:
|
|
settings = Settings()
|