Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|