diff --git a/server.py b/server.py index 6311edb..5446db6 100644 --- a/server.py +++ b/server.py @@ -142,7 +142,7 @@ def home(): analytics_tracking_code = '' if config['info_html']: - info_html = '
\n' + config['info_html'] + info_html = config['info_html'] else: info_html = '' diff --git a/templates/home.html b/templates/home.html index 7d63ed0..3acb10e 100644 --- a/templates/home.html +++ b/templates/home.html @@ -79,7 +79,10 @@

Client API URL: {{ client_api }}

Streaming API URL: {{ ws_client_api }}

OpenAI-Compatible API URL: {{ openai_client_api }}

+ {% if info_html|length > 1 %} +
{{ info_html|safe }} + {% endif %}