Skip to content

pratikpakhale/terravis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Follow these steps to setup the project (Linux). For windows, figure it out yourself.

WEB

cd web
npm ci
npm run dev

Server

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

NLP

cd nlp
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 app.py

AI

No need to start this server if you are using NLP mode only

| Make sure to check the config and check if you have the requirements set in your code/environment

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