Spaces:
Runtime error
Runtime error
divakaivan
commited on
revert back.
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def predict(text, speaker):
|
|
49 |
else:
|
50 |
speaker_embedding = np.load(speaker_embeddings[speaker[:3]])
|
51 |
|
52 |
-
speaker_embedding = torch.tensor(
|
53 |
|
54 |
speech = model.generate_speech(input_ids, speaker_embedding, vocoder=vocoder)
|
55 |
|
|
|
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 |
|