Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def predict(text, speaker):
|
|
45 |
x[x == 0] = -1.0
|
46 |
speaker_embedding *= x
|
47 |
|
48 |
-
|
49 |
else:
|
50 |
speaker_embedding = np.load(speaker_embeddings[speaker[:3]])
|
51 |
|
|
|
45 |
x[x == 0] = -1.0
|
46 |
speaker_embedding *= x
|
47 |
|
48 |
+
speaker_embedding = np.random.rand(512).astype(np.float32) * 0.3 - 0.15
|
49 |
else:
|
50 |
speaker_embedding = np.load(speaker_embeddings[speaker[:3]])
|
51 |
|