SuCicada commited on
Commit
89bd5df
1 Parent(s): e72893a
Files changed (2) hide show
  1. app.py +6 -7
  2. run.sh +4 -3
app.py CHANGED
@@ -24,11 +24,10 @@ is_space = os.getenv("SYSTEM") == "spaces"
24
  if is_space:
25
  init()
26
 
27
- if is_space:
28
- sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "SuTTS/test")))
29
- else:
30
- sys.path.append("/Users/peng/PROGRAM/GitHub/SuTTS/test")
31
-
32
- print(sys.path)
33
- os.environ['USE_CACHE_INFERENCE_AUDIO'] = "True"
34
 
 
24
  if is_space:
25
  init()
26
 
27
+ # if is_space:
28
+ # sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "SuTTS/test")))
29
+ # else:
30
+ # sys.path.append("/Users/peng/PROGRAM/GitHub/SuTTS/test")
31
+ #
32
+ # print(sys.path)
 
33
 
run.sh CHANGED
@@ -1,14 +1,15 @@
1
  #!/bin/bash
 
2
  if [ -d "SuTTS" ]; then
3
  echo "SuTTS already exists"
4
- cd SuTTS
5
  git pull --recurse-submodules
6
  git submodule update --recursive
7
  git submodule sync
8
  else
9
- git clone https://github.com/Plachtaa/VITS-fast-fine-tuning.git --recurse-submodules
10
  pip install -r requirements.txt
11
- cd SuTTS
12
  fi
13
 
14
  python VC_inference.py --model_dir ../G_latest.pth --config_dir ../finetune_speaker.json
 
1
  #!/bin/bash
2
+ project=project
3
  if [ -d "SuTTS" ]; then
4
  echo "SuTTS already exists"
5
+ cd $project
6
  git pull --recurse-submodules
7
  git submodule update --recursive
8
  git submodule sync
9
  else
10
+ git clone https://github.com/Plachtaa/VITS-fast-fine-tuning.git --recurse-submodules $project
11
  pip install -r requirements.txt
12
+ cd $project
13
  fi
14
 
15
  python VC_inference.py --model_dir ../G_latest.pth --config_dir ../finetune_speaker.json