From 81680796cd651872bdb2af3b92b556e9dc27a28f Mon Sep 17 00:00:00 2001 From: Gokul Mohanarangan Date: Tue, 25 Jul 2023 14:31:28 +0530 Subject: [PATCH] update installation scripts --- scripts/setup_pipeline_dependencies.sh | 8 +++++++- scripts/setup_server_dependencies.sh | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) 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