forked from efforting.tech/tts-server
Initial commit
This commit is contained in:
19
setup-venv.sh
Executable file
19
setup-venv.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Creates a venv in ./venv and installs Python deps for Chatterbox
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
VENV="${PYTHON_ENV:-${SCRIPT_DIR}/venv}"
|
||||
|
||||
if [ ! -d "${VENV}" ]; then
|
||||
echo "==> creating venv at ${VENV}"
|
||||
python3 -m venv "${VENV}"
|
||||
fi
|
||||
|
||||
echo "==> installing Python dependencies"
|
||||
"${VENV}/bin/pip" install --upgrade pip --quiet
|
||||
"${VENV}/bin/pip" install chatterbox-tts
|
||||
|
||||
|
||||
echo ""
|
||||
echo "==> venv ready at ${VENV}"
|
||||
Reference in New Issue
Block a user