Create config/settings.py
Browse files- config/settings.py +0 -27
config/settings.py
CHANGED
@@ -1,27 +0,0 @@
|
|
1 |
-
# config/settings.py
|
2 |
-
from pydantic_settings import BaseSettings, SettingsConfigDict
|
3 |
-
|
4 |
-
class Settings(BaseSettings):
|
5 |
-
# Streamlit
|
6 |
-
secret_key: str
|
7 |
-
|
8 |
-
# External APIs
|
9 |
-
gemini_api_key: str
|
10 |
-
umls_api_key: str
|
11 |
-
bioportal_api_key: str
|
12 |
-
|
13 |
-
# Database / Broker
|
14 |
-
database_url: str = "sqlite:///./data/app.db"
|
15 |
-
broker_url: str = "redis://redis:6379/0"
|
16 |
-
result_backend: str = "redis://redis:6379/1"
|
17 |
-
|
18 |
-
# Sentry (optional)
|
19 |
-
sentry_dsn: str | None = None
|
20 |
-
|
21 |
-
# Tell Pydantic where to load .env from
|
22 |
-
model_config = SettingsConfigDict(
|
23 |
-
env_file=".env",
|
24 |
-
env_file_encoding="utf-8",
|
25 |
-
)
|
26 |
-
|
27 |
-
settings = Settings()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|