diff --git a/scripts/setup_pipeline_dependencies.sh b/scripts/setup_pipeline_dependencies.sh index 95d5d41d..b0279ab2 100644 --- a/scripts/setup_pipeline_dependencies.sh +++ b/scripts/setup_pipeline_dependencies.sh @@ -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 diff --git a/scripts/setup_server_dependencies.sh b/scripts/setup_server_dependencies.sh index 50288d54..0ca5c1e4 100755 --- a/scripts/setup_server_dependencies.sh +++ b/scripts/setup_server_dependencies.sh @@ -1,4 +1,11 @@ #!/bin/sh pip install --upgrade pip -pip install -r ../server-requirements.txt \ No newline at end of file + +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