]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
examples : fix request path for local worker files (#2937)
authorDaniel Bevenius <redacted>
Mon, 24 Mar 2025 13:33:45 +0000 (14:33 +0100)
committerGitHub <redacted>
Mon, 24 Mar 2025 13:33:45 +0000 (14:33 +0100)
commitc7941d5ccc8d23a3d4e8ef2098bd0037010c198f
tree0b3ffa48122cf222cb4b6a5f079fc3ada81ba34e
parentb82ac32a6c6a7c1897d16b3b3e7e1303db71b980
examples : fix request path for local worker files (#2937)

This commit adds a fix to the server.py file to handle requests for
web worker files when running the local python server to test the wasm
examples.

The motivation for this is that currently the server is serving files
from the build-em/bin directory which is where the .worker.js files
exist. But when examples access these resources they do so with the
application context path, for example /whisper.wasm/libmain.worker.js
but this will not be found as it currently works.
examples/server.py