Team Ai
Apppublic

Xenobd/whisper.cpp

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
deploy-wasm.sh32 linesDownload Raw Back to scripts
1#!/bin/bash2#3# This is a helper script to deploy all WebAssembly examples to my node4# Run from the build directory:5#6# cd build-em7# ../scripts/deploy-wasm.sh8#9 10# check if emcmake is available11if ! command -v emcmake &> /dev/null12then13    echo "Error: emscripten environment is not set up"14    exit15fi16 17emcmake cmake .. && make -j18if [ $? -ne 0 ]; then19    echo "Error: build failed"20    exit21fi22 23# copy all wasm files to the node24scp bin/whisper.wasm/* root@linode0:/var/www/html/whisper/         && scp bin/libmain.worker.js    root@linode0:/var/www/html/whisper/25scp bin/stream.wasm/*  root@linode0:/var/www/html/whisper/stream/  && scp bin/libstream.worker.js  root@linode0:/var/www/html/whisper/stream/26scp bin/command.wasm/* root@linode0:/var/www/html/whisper/command/ && scp bin/libcommand.worker.js root@linode0:/var/www/html/whisper/command/27scp bin/talk.wasm/*    root@linode0:/var/www/html/whisper/talk/    && scp bin/libtalk.worker.js    root@linode0:/var/www/html/whisper/talk/28scp bin/bench.wasm/*   root@linode0:/var/www/html/whisper/bench/   && scp bin/libbench.worker.js   root@linode0:/var/www/html/whisper/bench/29 30echo "Done"31exit32