Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

config.py 582 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  1. import pathlib
  2. from pydantic_settings import BaseSettings, SettingsConfigDict
  3. class Settings(BaseSettings):
  4. window_size: int = 24
  5. top_features: int = 4
  6. lat: float = 46.5547
  7. lon: float = 15.6467
  8. mbajk_api_key: str
  9. mlflow_tracking_username: str
  10. mlflow_tracking_uri: str
  11. mlflow_tracking_password: str
  12. dagshub_user_token: str
  13. tf_use_legacy_keras: int = 1
  14. database_url: str
  15. __project_root = pathlib.Path(__file__).resolve().parent.parent
  16. model_config = SettingsConfigDict(env_file=f"{__project_root}/.env")
  17. settings = Settings()
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...