From c5b30d985c9c4b73fb681874e4b29b8d2db5ab0d Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 30 Sep 2023 22:11:51 -0600 Subject: [PATCH] adjust jinja template --- server.py | 4 ++-- templates/home.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 380bef0..7cb5a88 100644 --- a/server.py +++ b/server.py @@ -105,9 +105,9 @@ def home(): if default_backend_info['queued'] == 0 and default_backend_info['queued'] >= opts.concurrent_gens: # There will be a wait if the queue is empty but prompts are processing, but we don't # know how long. - default_estimated_wait_sec = f"less than {default_backend_info['estimated_wait']} seconds" + default_estimated_wait_sec = f"less than {int(default_backend_info['estimated_wait'])} seconds" else: - default_estimated_wait_sec = f"{default_backend_info['estimated_wait']} seconds" + default_estimated_wait_sec = f"{int(default_backend_info['estimated_wait'])} seconds" if len(config['analytics_tracking_code']): analytics_tracking_code = f"" diff --git a/templates/home.html b/templates/home.html index a706801..fad0429 100644 --- a/templates/home.html +++ b/templates/home.html @@ -163,7 +163,7 @@ OpenAI-Compatible API URL: {{ value.openai_client_api }}

Context Size: {{ value.context_size }}

-

Average Generation Time: {{ value.avg_generation_time | int }}

+

Average Generation Time: {{ value.avg_generation_time | int }} seconds


{% endfor %}