made loading message more descriptive

This commit is contained in:
VJHack 2024-09-12 23:14:29 -05:00
parent df9f16747f
commit 739ea75015

View File

@ -2596,7 +2596,7 @@ int main(int argc, char ** argv) {
server_state current_state = state.load(); server_state current_state = state.load();
if (current_state == SERVER_STATE_LOADING_MODEL) { if (current_state == SERVER_STATE_LOADING_MODEL) {
if(req.path == "/"){ if(req.path == "/"){
res.set_content("<html><body>The model is loading. Please wait.<br/>The user interface will appear soon.</body></html>", "text/html; charset=utf-8"); res.set_content("<html><body>The model is loading. Please wait.<br/>The user interface will appear soon.<br/>You may need to refresh the page.</body></html>", "text/html; charset=utf-8");
res.status = 503; res.status = 503;
} else { } else {
res_error(res, format_error_response("Loading model", ERROR_TYPE_UNAVAILABLE)); res_error(res, format_error_response("Loading model", ERROR_TYPE_UNAVAILABLE));