fix when all offline

This commit is contained in:
Cyberes 2023-10-23 17:28:59 -06:00
parent 96ba48affc
commit b4e01e129d
1 changed files with 3 additions and 4 deletions

View File

@ -120,13 +120,12 @@ def home():
else: else:
default_model_info = { default_model_info = {
'model': 'OFFLINE', 'model': 'OFFLINE',
'processing': 0, 'processing': '-',
'queued': 0, 'queued': '-',
'context_size': '-',
} }
default_estimated_wait_sec = 'OFFLINE' default_estimated_wait_sec = 'OFFLINE'
if len(config['analytics_tracking_code']): if len(config['analytics_tracking_code']):
analytics_tracking_code = f"<script>\n{config['analytics_tracking_code']}\n</script>" analytics_tracking_code = f"<script>\n{config['analytics_tracking_code']}\n</script>"
else: else: