Update FLASK_DEBUG_MODE setting to use value from settings module

This commit is contained in:
Alex committed 2024-04-08 13:15:58 +01:00
1 parent 6911f8652a
commit abf24fe60f
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -40,5 +40,5 @@ def after_request(response):
return response
if __name__ == "__main__":
app.run(debug=True, port=7091)
app.run(debug=settings.FLASK_DEBUG_MODE, port=7091)
+2
View File
@@ -59,6 +59,8 @@ class Settings(BaseSettings):
QDRANT_PATH: Optional[str] = None
QDRANT_DISTANCE_FUNC: str = "Cosine"
FLASK_DEBUG_MODE: bool = False
path = Path(__file__).parent.parent.absolute()
settings = Settings(_env_file=path.joinpath(".env"), _env_file_encoding="utf-8")