Update app.py
Browse files
app.py
CHANGED
@@ -27,16 +27,16 @@ vist_tokenizer = AutoTokenizer.from_pretrained("facebook/mms-tts-spa")
|
|
27 |
|
28 |
# ---------------- Speech generator specht5_tts --------------------------#
|
29 |
|
30 |
-
model = SpeechT5ForTextToSpeech.from_pretrained(
|
31 |
-
|
32 |
-
)
|
33 |
-
checkpoint = "microsoft/speecht5_tts"
|
34 |
-
processor = SpeechT5Processor.from_pretrained(checkpoint)
|
35 |
-
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
36 |
-
|
37 |
-
speaker_embeddings2 = np.load('speaker_embeddings.npy')
|
38 |
-
speaker_embeddings2 = torch.tensor(speaker_embeddings2)
|
39 |
-
print(speaker_embeddings2)
|
40 |
|
41 |
|
42 |
# def language_detector(text):
|
|
|
27 |
|
28 |
# ---------------- Speech generator specht5_tts --------------------------#
|
29 |
|
30 |
+
# model = SpeechT5ForTextToSpeech.from_pretrained(
|
31 |
+
# "juangtzi/speecht5_finetuned_voxpopuli_es"
|
32 |
+
# )
|
33 |
+
# checkpoint = "microsoft/speecht5_tts"
|
34 |
+
# processor = SpeechT5Processor.from_pretrained(checkpoint)
|
35 |
+
# vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
36 |
+
|
37 |
+
# speaker_embeddings2 = np.load('speaker_embeddings.npy')
|
38 |
+
# speaker_embeddings2 = torch.tensor(speaker_embeddings2)
|
39 |
+
# print(speaker_embeddings2)
|
40 |
|
41 |
|
42 |
# def language_detector(text):
|