diff --git a/app/fastwhisper.py b/app/fastwhisper.py new file mode 100644 index 0000000..b0250c4 --- /dev/null +++ b/app/fastwhisper.py @@ -0,0 +1,10 @@ +from fastwhisper.init import load_fastwhisper +from ahserver.webapp import webapp + +def init(): + load_fastwhisper() + +if __name__ == '__main__': + webapp(init) + + diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..a5845a2 --- /dev/null +++ b/build.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash +# clone from git@git.opencomputing.cn/yumoqing/fastwhisper +# git clone https://git.opencomputing.cn/yumoqing/fastwhisper +cdir=$(pwd) +uname=$(id -un) +gname=$(id -gn) +sudo apt install redis-server +python3 -m venv py3 +source py3/bin/activate +pip install -r requirements.txt +mkdir pkgs +cd pkgs +for m in apppublic sqlor ahserver longtasks +do + echo "install $m module..." + cd $cdir/pkgs + git clone https://git.opencomputing.cn/yumoqing/$m + cd $m + $cdir/py3/bin/pip install . +done +cd $cdir/fw +pip install . +mkdir $cdir/logs +cd $cdir +touch $cdir/logs/fastwhisper.log +cat > $cdir/fastwhisper.service < $cdir/start.sh < $cdir/stop.sh <