From 05445fd5ed98c539b2b18616fc5234e5560c1936 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 11 Dec 2023 17:57:31 +0000 Subject: [PATCH] fix: tranformers-musicgen conda env Initialize correctly the environment for the transformers-musicgen backend. --- backend/python/transformers-musicgen/run.sh | 4 ++-- backend/python/transformers-musicgen/test.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/python/transformers-musicgen/run.sh b/backend/python/transformers-musicgen/run.sh index ddd78bc7ad41..d3dcb9681551 100644 --- a/backend/python/transformers-musicgen/run.sh +++ b/backend/python/transformers-musicgen/run.sh @@ -5,10 +5,10 @@ echo "Launching gRPC server for transformers-musicgen" +export PATH=$PATH:/opt/conda/bin # Activate conda environment -source $CONDA_PREFIX/etc/profile.d/conda.sh -conda activate transformers-musicgen +source activate transformers-musicgen # get the directory where the bash script is located DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" diff --git a/backend/python/transformers-musicgen/test.sh b/backend/python/transformers-musicgen/test.sh index f284db55ef26..985ebcec93c9 100644 --- a/backend/python/transformers-musicgen/test.sh +++ b/backend/python/transformers-musicgen/test.sh @@ -3,7 +3,7 @@ ## A bash script wrapper that runs the transformers server with conda # Activate conda environment -source conda activate transformers-musicgen +source activate transformers-musicgen # get the directory where the bash script is located DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"