Skip to content

Commit

Permalink
[fix] load .env before apply UI (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
a11057002 authored Apr 1, 2024
1 parent 34e374c commit f6aabc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
# Current minimum Azure OpenAI version supported
MINIMUM_SUPPORTED_AZURE_OPENAI_PREVIEW_API_VERSION = "2024-02-15-preview"

load_dotenv()

# UI configuration (optional)
UI_TITLE = os.environ.get("UI_TITLE") or "Contoso"
UI_LOGO = os.environ.get("UI_LOGO")
Expand Down Expand Up @@ -70,8 +72,6 @@ async def assets(path):
return await send_from_directory("static/assets", path)


load_dotenv()

# Debug settings
DEBUG = os.environ.get("DEBUG", "false")
if DEBUG.lower() == "true":
Expand Down

0 comments on commit f6aabc9

Please sign in to comment.