terravis
1.0.0
請依照下列步驟設定項目 (Linux)。對於windows,你自己想辦法。
cd web
npm ci
npm run dev
cd server
git submodule init && git submodule update --recursive # clone the submodules
# if the above command doesn't work then do this - `git clone https://github.com/ggerganov/whisper.cpp`
cd whisper.cpp
bash ./models/download-ggml-model.sh tiny.en
make
cd examples/addon.node && npm install
# go to whisper root (cd server/whisper.cpp)
npx cmake-js compile -T addon.node -B Release
# if you have gpu then, npx cmake-js compile --GGML_CUDA=1 -T whisper-addon -B Release
# go to server root (cd server/)
npm ci
node --watch app.js
cd nlp
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 app.py
如果您僅使用 NLP 模式,則無需啟動此伺服器
|確保檢查配置並檢查您的程式碼/環境中是否設定了要求
cd ai
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
# rename env.template as .env and add api keys (groq/gemini/etc)
python3 app.py