Merge branch 'arc53:main' into main

pull/912/head
Siddhant Rai 2 months ago committed by GitHub
commit 2ba7a55439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)

@ -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")

@ -1,4 +1,5 @@
from application.app import app
from application.core.settings import settings
if __name__ == "__main__":
app.run(debug=True, port=7091)
app.run(debug=settings.FLASK_DEBUG_MODE, port=7091)

Loading…
Cancel
Save