Simonlob commited on
Commit
c6ca895
·
verified ·
1 Parent(s): 6078bbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def process_text(i: int, text: str, device: torch.device):
57
  x_lengths = torch.tensor([x.shape[-1]], dtype=torch.long, device=device)
58
  x_phones = sequence_to_text(x.squeeze(0).tolist())
59
  print(f"[{i}] - Phonetised text: {x_phones[1::2]}")
60
- return {"x_orig": text, "x": x, "x_lengths": x_lengths, "x_phones": 'sɑlˈɑm ɑlˈejqum, pˈid[or.'}#x_phones}
61
 
62
  def to_waveform(mel, vocoder, denoiser=None):
63
  audio = vocoder(mel).clamp(-1, 1)
 
57
  x_lengths = torch.tensor([x.shape[-1]], dtype=torch.long, device=device)
58
  x_phones = sequence_to_text(x.squeeze(0).tolist())
59
  print(f"[{i}] - Phonetised text: {x_phones[1::2]}")
60
+ return {"x_orig": text, "x": x, "x_lengths": x_lengths, "x_phones": x_phones}
61
 
62
  def to_waveform(mel, vocoder, denoiser=None):
63
  audio = vocoder(mel).clamp(-1, 1)