Skip to content

Commit 05445fd

Browse files
committed
fix: tranformers-musicgen conda env
Initialize correctly the environment for the transformers-musicgen backend.
1 parent 284121c commit 05445fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/python/transformers-musicgen/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
echo "Launching gRPC server for transformers-musicgen"
77

8+
export PATH=$PATH:/opt/conda/bin
89

910
# Activate conda environment
10-
source $CONDA_PREFIX/etc/profile.d/conda.sh
11-
conda activate transformers-musicgen
11+
source activate transformers-musicgen
1212

1313
# get the directory where the bash script is located
1414
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

backend/python/transformers-musicgen/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## A bash script wrapper that runs the transformers server with conda
44

55
# Activate conda environment
6-
source conda activate transformers-musicgen
6+
source activate transformers-musicgen
77

88
# get the directory where the bash script is located
99
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

0 commit comments

Comments
 (0)