Spaces:
Runtime error
Runtime error
File size: 471 Bytes
d563a73 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
from typing import Set
from pydantic import (
BaseModel,
BaseSettings,
RedisDsn,
PostgresDsn,
AmqpDsn,
Field,
)
class Settings(BaseSettings):
reddit_api_client_id: str
reddit_api_client_secret: str
stock_data_api_key: str
reddit_api_user_agent: str = "USERAGENT"
model_path: str = "fourthbrain-demo/model_trained_by_me2"
class Config:
env_file = ".env" # defaults to no prefix, i.e. ""
settings = Settings()
|