Skip to content

Commit

Permalink
fix: tranformers-musicgen conda env
Browse files Browse the repository at this point in the history
Initialize correctly the environment for the transformers-musicgen backend.
  • Loading branch information
mudler committed Dec 11, 2023
1 parent 284121c commit 05445fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/python/transformers-musicgen/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 )"
Expand Down
2 changes: 1 addition & 1 deletion backend/python/transformers-musicgen/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 )"
Expand Down

0 comments on commit 05445fd

Please sign in to comment.