andre-coy commited on
Commit
31a2206
โ€ข
1 Parent(s): 67d138e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,11 +49,11 @@ def predict(text, speaker):
49
  else:
50
  speaker_embedding = np.load(speaker_embeddings[speaker[:3]])
51
 
52
- speaker_embedding = torch.tensor(speaker_embedding).unsqueeze(0)
53
 
54
  speech = model.generate_speech(input_ids, speaker_embedding, vocoder=vocoder)
55
 
56
- speech = (speech.numpy() * 32767).astype(np.int16)
57
  return (16000, speech)
58
 
59
 
 
49
  else:
50
  speaker_embedding = np.load(speaker_embeddings[speaker[:3]])
51
 
52
+ #speaker_embedding = torch.tensor(speaker_embedding).unsqueeze(0)
53
 
54
  speech = model.generate_speech(input_ids, speaker_embedding, vocoder=vocoder)
55
 
56
+ #speech = (speech.numpy() * 32767).astype(np.int16)
57
  return (16000, speech)
58
 
59