Delete TextGen/ConfigEnv.py
Browse files- TextGen/ConfigEnv.py +0 -19
TextGen/ConfigEnv.py
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
"""Config class for handling env variables.
|
2 |
-
"""
|
3 |
-
from functools import lru_cache
|
4 |
-
from pydantic import BaseSettings
|
5 |
-
|
6 |
-
class Settings(BaseSettings):
|
7 |
-
APP_ID: str
|
8 |
-
USER_ID: str
|
9 |
-
MODEL_ID: str
|
10 |
-
CLARIFAI_PAT: str
|
11 |
-
MODEL_VERSION_ID: str
|
12 |
-
|
13 |
-
class Config:
|
14 |
-
env_file = '.env'
|
15 |
-
|
16 |
-
@lru_cache()
|
17 |
-
def get_settings():
|
18 |
-
return Settings()
|
19 |
-
config = get_settings()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|