From a1aa6cb7c22c5693493df577458de5581b15d78b Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 1 Jan 2024 16:02:48 -0500 Subject: [PATCH] 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 --- backend/python/exllama/run.sh | 2 ++ backend/python/exllama2/run.sh | 2 ++ backend/python/vall-e-x/run.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/backend/python/exllama/run.sh b/backend/python/exllama/run.sh index 59184076..c1743e57 100755 --- a/backend/python/exllama/run.sh +++ b/backend/python/exllama/run.sh @@ -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 $@ diff --git a/backend/python/exllama2/run.sh b/backend/python/exllama2/run.sh index 4586ab91..068172f1 100755 --- a/backend/python/exllama2/run.sh +++ b/backend/python/exllama2/run.sh @@ -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 $@ diff --git a/backend/python/vall-e-x/run.sh b/backend/python/vall-e-x/run.sh index 3286e951..4fde705e 100755 --- a/backend/python/vall-e-x/run.sh +++ b/backend/python/vall-e-x/run.sh @@ -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 $@ \ No newline at end of file