barreloflube commited on
Commit
21ef285
1 Parent(s): bf77c60

Update submodule URLs for CosyVoice TTS and pull latest changes

Browse files
Files changed (1) hide show
  1. config.py +8 -0
config.py CHANGED
@@ -13,6 +13,14 @@ cosyvoice_path = os.path.join(os.getcwd(), 'tabs', 'audios', 'modules', 'CosyVoi
13
  sys.path.append(matcha_tts_path)
14
  sys.path.append(cosyvoice_path)
15
 
 
 
 
 
 
 
 
 
16
  # Setup ENV
17
  os.environ['HF_HOME'] = os.path.join(os.getcwd(), '.cache')
18
  os.makedirs(os.environ['HF_HOME'], exist_ok=True)
 
13
  sys.path.append(matcha_tts_path)
14
  sys.path.append(cosyvoice_path)
15
 
16
+
17
+ # Pull the latest changes
18
+ base_path = os.path.join(os.getcwd())
19
+ os.system(f'cd {matcha_tts_path} && git pull')
20
+ os.system(f'cd {cosyvoice_path} && git pull --recurse-submodules')
21
+ os.system(f'cd {base_path}')
22
+
23
+
24
  # Setup ENV
25
  os.environ['HF_HOME'] = os.path.join(os.getcwd(), '.cache')
26
  os.makedirs(os.environ['HF_HOME'], exist_ok=True)