From af4a0810ff8687aa3078f712d207149e059cb981 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 5 Nov 2025 14:37:45 +0800 Subject: [PATCH] bugfix --- app/fastwhisper.py | 10 ++++++++ build.sh | 59 ++++++++++++++++++++++++++++++++++++++++++++++ conf/config.json | 42 +++++++++++++++++++++++++++++++++ files/README.md | 0 fw/__init__.py | 0 fw/fw.py | 2 +- fw/init.py | 11 +++++++++ logs/README.md | 0 requirements.txt | 1 + wwwroot/README.md | 0 10 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 app/fastwhisper.py create mode 100644 build.sh create mode 100644 conf/config.json create mode 100644 files/README.md create mode 100644 fw/__init__.py create mode 100644 fw/init.py create mode 100644 logs/README.md create mode 100644 requirements.txt create mode 100644 wwwroot/README.md 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 <