Simonlob commited on
Commit
706f12e
·
verified ·
1 Parent(s): 37b9b5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def process_text(i: int, text: str, device: torch.device):
56
  )[None]
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):
 
56
  )[None]
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}")
60
  return {"x_orig": text, "x": x, "x_lengths": x_lengths, "x_phones": x_phones}
61
 
62
  def to_waveform(mel, vocoder, denoiser=None):