Skip to content

Commit a1aa6cb

Browse files
authored
fix(entrypoint): cd to backend dir before start (#1530)
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
1 parent 85e2767 commit a1aa6cb

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

backend/python/exllama/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ source activate exllama
1111
# get the directory where the bash script is located
1212
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1313

14+
cd $DIR
15+
1416
python $DIR/exllama.py $@

backend/python/exllama2/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ source activate exllama2
1111
# get the directory where the bash script is located
1212
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1313

14+
cd $DIR
15+
1416
python $DIR/exllama2_backend.py $@

backend/python/vall-e-x/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ source activate transformers
1010
# get the directory where the bash script is located
1111
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1212

13+
cd $DIR
14+
1315
python $DIR/ttsvalle.py $@

0 commit comments

Comments
 (0)