Add project files
This commit is contained in:
parent
c289650a0d
commit
1c72d8e20d
4 changed files with 139 additions and 0 deletions
32
setup.sh
Executable file
32
setup.sh
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# init
|
||||
oldcwd=$(pwd)
|
||||
function cleanup {
|
||||
cd ${oldcwd}
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
export root_dir=$(realpath $(dirname $0))
|
||||
export vendor_dir=${root_dir}/vendor
|
||||
|
||||
# Prepare installation of dependencies
|
||||
|
||||
mkdir -p ${vendor_dir}
|
||||
cd ${vendor_dir}
|
||||
|
||||
# Install whisper.cpp
|
||||
|
||||
if [ ! -d ./whisper.cpp ]; then
|
||||
git clone -b v1.6.2 https://github.com/ggerganov/whisper.cpp.git
|
||||
fi
|
||||
cd whisper.cpp
|
||||
make
|
||||
cd ${vendor_dir}
|
||||
|
||||
# Install python packages
|
||||
|
||||
if ! python3 -m pip install -r "${root_dir}/requirements.txt"; then
|
||||
echo
|
||||
echo "Make shure to run this script in a python virtual environment!"
|
||||
fi
|
Reference in a new issue