mekaneeky commited on
Commit
8da8334
1 Parent(s): a75129b
__pycache__/app.cpython-310.pyc ADDED
Binary file (1.56 kB). View file
 
__pycache__/attentions.cpython-310.pyc ADDED
Binary file (9.6 kB). View file
 
__pycache__/commons.cpython-310.pyc ADDED
Binary file (5.78 kB). View file
 
__pycache__/models.cpython-310.pyc ADDED
Binary file (15.3 kB). View file
 
__pycache__/modules.cpython-310.pyc ADDED
Binary file (11.5 kB). View file
 
__pycache__/stitched_model.cpython-310.pyc ADDED
Binary file (3.55 kB). View file
 
__pycache__/transforms.cpython-310.pyc ADDED
Binary file (3.92 kB). View file
 
stitched_model.py CHANGED
@@ -23,13 +23,17 @@ class CombinedModel(nn.Module):
23
 
24
  if huggingface_checkpoint:
25
  self.tts_checkpoint_path = hf_hub_download(huggingface_checkpoint,tts_checkpoint_name)
 
 
26
  elif not tts_checkpoint_path:
27
  self.tts_checkpoint_path = self.download_mms_tts(self.language)
 
 
28
  else:
29
  self.tts_checkpoint_path = tts_checkpoint_path
30
-
31
- vocab_file = f"{self.tts_checkpoint_path}/vocab.txt"
32
- config_file = f"{self.tts_checkpoint_path}/config.json"
33
 
34
  self.hps = utils.get_hparams_from_file(config_file)
35
  self.text_mapper = TextMapper(vocab_file)
 
23
 
24
  if huggingface_checkpoint:
25
  self.tts_checkpoint_path = hf_hub_download(huggingface_checkpoint,tts_checkpoint_name)
26
+ vocab_file = hf_hub_download(huggingface_checkpoint,"vocab.txt")
27
+ config_file = hf_hub_download(huggingface_checkpoint,"config.json")
28
  elif not tts_checkpoint_path:
29
  self.tts_checkpoint_path = self.download_mms_tts(self.language)
30
+ vocab_file = f"{self.tts_checkpoint_path}/vocab.txt"
31
+ config_file = f"{self.tts_checkpoint_path}/config.json"
32
  else:
33
  self.tts_checkpoint_path = tts_checkpoint_path
34
+ vocab_file = f"{self.tts_checkpoint_path}/vocab.txt"
35
+ config_file = f"{self.tts_checkpoint_path}/config.json"
36
+
37
 
38
  self.hps = utils.get_hparams_from_file(config_file)
39
  self.text_mapper = TextMapper(vocab_file)