NguyenNhatSakura commited on
Commit
897b690
·
verified ·
1 Parent(s): 9a5106a

Delete run.sh

Browse files
Files changed (1) hide show
  1. run.sh +0 -46
run.sh DELETED
@@ -1,46 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- PYTHON_VERSION=3.10
4
-
5
- # Check for required dependencies
6
- dependencies=("python${PYTHON_VERSION}" "python${PYTHON_VERSION}-venv" "python${PYTHON_VERSION}-dev")
7
- missing_dependencies=()
8
-
9
- for dep in "${dependencies[@]}"; do
10
- if ! dpkg -s "$dep" &> /dev/null; then
11
- missing_dependencies+=("$dep")
12
- fi
13
- done
14
-
15
- if [ ${#missing_dependencies[@]} -gt 0 ]; then
16
- echo "Missing dependencies: ${missing_dependencies[*]}"
17
- echo "Please install them using 'sudo apt install ${missing_dependencies[*]}'"
18
- exit 1
19
- fi
20
-
21
- if python$PYTHON_VERSION --version &> /dev/null; then
22
- echo "Using Python version: $PYTHON_VERSION"
23
- if [ -f .env/ok ]; then
24
- source .env/bin/activate
25
- else
26
- echo "The environment is not ok. Running setup..."
27
- rm -rf .env
28
- python$PYTHON_VERSION -m venv .env && \
29
- source .env/bin/activate && \
30
- git submodule update --init --recursive && \
31
- cd TTS && \
32
- git fetch --tags && \
33
- git checkout 0.1.1 && \
34
- echo "Installing TTS..." && \
35
- pip install --use-deprecated=legacy-resolver -e . -q && \
36
- cd .. && \
37
- echo "Installing other requirements..." && \
38
- pip install -r requirements.txt -q && \
39
- echo "Downloading Japanese/Chinese tokenizer..." && \
40
- python -m unidic download
41
- touch .env/ok
42
- fi
43
- python demo.py
44
- else
45
- echo "Python version $PYTHON_VERSION is not installed. Please install it."
46
- fi