Update server.cpp
This commit is contained in:
parent
139cdfc0de
commit
2fc0c248fe
1 changed files with 2 additions and 1 deletions
|
@ -2801,6 +2801,8 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
httplib::Server svr;
|
httplib::Server svr;
|
||||||
|
|
||||||
|
ServerState server_state = LOADING_MODEL;
|
||||||
|
|
||||||
svr.set_default_headers({{"Server", "llama.cpp"},
|
svr.set_default_headers({{"Server", "llama.cpp"},
|
||||||
{"Access-Control-Allow-Origin", "*"},
|
{"Access-Control-Allow-Origin", "*"},
|
||||||
{"Access-Control-Allow-Headers", "content-type"}});
|
{"Access-Control-Allow-Headers", "content-type"}});
|
||||||
|
@ -2823,7 +2825,6 @@ int main(int argc, char **argv)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
ServerState server_state = LOADING_MODEL;
|
|
||||||
// load the model
|
// load the model
|
||||||
if (!llama.load_model(params))
|
if (!llama.load_model(params))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue