From 01fb619b9b77c760e03c1841978017e1e75e5795 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Thu, 5 Oct 2023 18:05:31 -0600 Subject: [PATCH] f --- server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.py b/server.py index 8d723ab..f604763 100644 --- a/server.py +++ b/server.py @@ -99,6 +99,10 @@ def home(): base_client_api = redis.get('base_client_api', dtype=str) stats = generate_stats() model_choices, default_model = get_model_choices() + + if not model_choices.get(default_model): + return 'The server is still starting up. Please wait...' + default_model_info = model_choices[default_model] if default_model_info['queued'] == 0 and default_model_info['queued'] >= default_model_info['concurrent_gens']: