Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ tokenizer = WhisperTokenizer.from_pretrained("openai/whisper-base", language="fr
|
|
18 |
whisper_model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-base")
|
19 |
forced_decoder_ids = tokenizer.get_decoder_prompt_ids(language="french", task="translate")
|
20 |
|
21 |
-
load text-to-speech checkpoint and speaker embeddings
|
22 |
processor = SpeechT5Processor.from_pretrained("leo-kwan/speecht5_finetuned_voxpopuli_lt")
|
23 |
|
24 |
model = SpeechT5ForTextToSpeech.from_pretrained("leo-kwan/speecht5_finetuned_voxpopuli_lt").to(device)
|
|
|
18 |
whisper_model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-base")
|
19 |
forced_decoder_ids = tokenizer.get_decoder_prompt_ids(language="french", task="translate")
|
20 |
|
21 |
+
#load text-to-speech checkpoint and speaker embeddings
|
22 |
processor = SpeechT5Processor.from_pretrained("leo-kwan/speecht5_finetuned_voxpopuli_lt")
|
23 |
|
24 |
model = SpeechT5ForTextToSpeech.from_pretrained("leo-kwan/speecht5_finetuned_voxpopuli_lt").to(device)
|