set TRANSLATOR_API_BASE_URL from environment
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user