update installation scripts

This commit is contained in:
Gokul Mohanarangan
2023-07-25 14:31:28 +05:30
parent b4303d6cd4
commit 81680796cd
2 changed files with 15 additions and 2 deletions

View File

@@ -26,7 +26,13 @@ pip install git+https://github.com/sanchit-gandhi/whisper-jax.git
# Update to latest version
pip install --upgrade --no-deps --force-reinstall git+https://github.com/sanchit-gandhi/whisper-jax.git
pip install -r ../server-requirements.txt
cwd=$(pwd)
last_component="${cwd##*/}"
if [ "$last_component" = "reflector" ]; then
pip install -r pipeline-requirements.txt
elif [ "$last_component" = "scripts" ]; then
pip install -r ../pipeline-requirements.txt
fi
# download spacy models
spacy download en_core_web_sm

View File

@@ -1,4 +1,11 @@
#!/bin/sh
pip install --upgrade pip
pip install -r ../server-requirements.txt
cwd=$(pwd)
last_component="${cwd##*/}"
if [ "$last_component" = "reflector" ]; then
pip install -r server-requirements.txt
elif [ "$last_component" = "scripts" ]; then
pip install -r ../server-requirements.txt
fi