|
1 | | -import sys |
2 | 1 | import logging |
| 2 | +import sys |
3 | 3 |
|
| 4 | +from core.logging import InterceptHandler |
4 | 5 | from loguru import logger |
5 | 6 | from starlette.config import Config |
6 | 7 | from starlette.datastructures import Secret |
7 | 8 |
|
8 | | -from core.logging import InterceptHandler |
9 | | - |
10 | 9 | config = Config(".env") |
11 | 10 |
|
12 | 11 | API_PREFIX = "/api" |
13 | | -VERSION = "{{cookiecutter.version}}" |
| 12 | +VERSION = "0.1.0" |
14 | 13 | DEBUG: bool = config("DEBUG", cast=bool, default=False) |
15 | 14 | MAX_CONNECTIONS_COUNT: int = config("MAX_CONNECTIONS_COUNT", cast=int, default=10) |
16 | 15 | MIN_CONNECTIONS_COUNT: int = config("MIN_CONNECTIONS_COUNT", cast=int, default=10) |
17 | 16 | SECRET_KEY: Secret = config("SECRET_KEY", cast=Secret, default="") |
| 17 | +MEMOIZATION_FLAG: bool = config("MEMOIZATION_FLAG", cast=bool, default=True) |
18 | 18 |
|
19 | | -PROJECT_NAME: str = config("PROJECT_NAME", default="{{cookiecutter.project_name}}") |
| 19 | +PROJECT_NAME: str = config("PROJECT_NAME", default="manu") |
20 | 20 |
|
21 | 21 | # logging configuration |
22 | 22 | LOGGING_LEVEL = logging.DEBUG if DEBUG else logging.INFO |
|
25 | 25 | ) |
26 | 26 | logger.configure(handlers=[{"sink": sys.stderr, "level": LOGGING_LEVEL}]) |
27 | 27 |
|
28 | | -MODEL_PATH = config("MODEL_PATH", default="{{cookiecutter.machine_learn_model_path}}") |
29 | | -MODEL_NAME = config("MODEL_NAME", default="{{cookiecutter.machine_learn_model_name}}") |
30 | | -INPUT_EXAMPLE = config("INPUT_EXAMPLE", default="{{cookiecutter.input_example_path}}") |
| 28 | +MODEL_PATH = config( |
| 29 | + "MODEL_PATH", default="/Users/arthur.dasilva/repos/arthurhenrique/n" |
| 30 | +) |
| 31 | +MODEL_NAME = config("MODEL_NAME", default="pregnancy_model_local.joblib") |
| 32 | +INPUT_EXAMPLE = config("INPUT_EXAMPLE", default="./ml/model/examples/example.json") |
0 commit comments