]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server : add loading html page while model is loading (#9468)
authorXuan Son Nguyen <redacted>
Fri, 13 Sep 2024 12:23:11 +0000 (14:23 +0200)
committerGitHub <redacted>
Fri, 13 Sep 2024 12:23:11 +0000 (14:23 +0200)
commitfeff4aa8461da7c432d144c11da4802e41fef3cf
treeabdf16393c7b554150ed0664225a50963fc9030c
parent0abc6a2c25272d5cf01384dda8ee8bfec4ba8745
server : add loading html page while model is loading (#9468)

* Adding loading page for '/' server requests

* set content when model is loading

* removed loading html file

* updated cmakelist

* updated makefile

* cleaned up whitespace

* cleanup for PR removed error

* updated server test to handle 503 HTML

* updated server test to handle 503 HTML

* ca†ch 503 before parsing json

* revert test

* account for both api and web browser requests

* precommit corrections

* eol fix

* revert changes to pre-commit

* removed print statement

* made loading message more descriptive

* also support .html files

---------

Co-authored-by: VJHack <redacted>
Co-authored-by: Vinesh Janarthanan <redacted>
Makefile
examples/server/CMakeLists.txt
examples/server/public/loading.html [new file with mode: 0644]
examples/server/server.cpp