initialized server_state

This commit is contained in:
Behnam M 2024-01-10 00:16:47 -05:00 committed by GitHub
parent 03d7ff0777
commit 675e67fe89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2799,11 +2799,11 @@ int main(int argc, char **argv)
{"system_info", llama_print_system_info()},
});
server_state = LOADING_MODEL;
ServerState server_state = LOADING_MODEL;
// load the model
if (!llama.load_model(params))
{
server_state = ERRPR;
server_state = ERROR;
return 1;
}