Update app.py
Browse filesmentioned dae instead of deu for german in model and tokeniser
app.py
CHANGED
@@ -14,8 +14,8 @@ asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base",
|
|
14 |
# load text-to-speech checkpoint and speaker embeddings
|
15 |
#processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
16 |
|
17 |
-
model = VitsModel.from_pretrained("Matthijs/mms-tts-
|
18 |
-
tokenizer = VitsTokenizer.from_pretrained("Matthijs/mms-tts-
|
19 |
|
20 |
#embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|
21 |
#speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)
|
|
|
14 |
# load text-to-speech checkpoint and speaker embeddings
|
15 |
#processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
16 |
|
17 |
+
model = VitsModel.from_pretrained("Matthijs/mms-tts-deu").to(device)
|
18 |
+
tokenizer = VitsTokenizer.from_pretrained("Matthijs/mms-tts-deu")
|
19 |
|
20 |
#embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
|
21 |
#speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)
|