Skip to content

Commit

Permalink
fix(entrypoint): cd to backend dir before start (#1530)
Browse files Browse the repository at this point in the history
Certain backends as vall-e-x are not meant to be used as a library, so
we want to start the process in the same folder where the backend and
all the assets are fixes #1394
  • Loading branch information
mudler authored Jan 1, 2024
1 parent 85e2767 commit a1aa6cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/python/exllama/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ source activate exllama
# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

cd $DIR

python $DIR/exllama.py $@
2 changes: 2 additions & 0 deletions backend/python/exllama2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ source activate exllama2
# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

cd $DIR

python $DIR/exllama2_backend.py $@
2 changes: 2 additions & 0 deletions backend/python/vall-e-x/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ source activate transformers
# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

cd $DIR

python $DIR/ttsvalle.py $@

0 comments on commit a1aa6cb

Please sign in to comment.