Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def text2speech(model, text):
|
|
26 |
speechclassifier = pipeline("text-to-speech", model=model)
|
27 |
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|
28 |
speaker_embedding = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)
|
29 |
-
output = speechclassifier(text
|
30 |
print(output, type(output) )
|
31 |
return output
|
32 |
|
|
|
26 |
speechclassifier = pipeline("text-to-speech", model=model)
|
27 |
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|
28 |
speaker_embedding = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)
|
29 |
+
output = speechclassifier(text)
|
30 |
print(output, type(output) )
|
31 |
return output
|
32 |
|