set TRANSLATOR_API_BASE_URL from environment

This commit is contained in:
2025-03-23 16:50:52 +01:00
parent 03585726b5
commit 4c5242dca3
+4
View File
@@ -1,6 +1,7 @@
"""
Airport Announcement System Streamlit frontend application.
"""
import os
import streamlit as st
# Page setup must be first
@@ -14,6 +15,9 @@ from translator_client.translator_client import (
)
from translator_models.translator_models import Endpoint, EndpointGroup, AnnouncementStates
if "TRANSLATOR_API_BASE_URL" not in os.environ:
translator_client.translator_client.API_BASE_URL = os.getenv("TRANSLATOR_API_BASE_URL")
# Initialize session state for configuration
if "endpoint_groups" not in st.session_state:
try: