Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from transformers import SpeechT5ForTextToSpeech, SpeechT5HifiGan, SpeechT5Proce
|
|
8 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
9 |
|
10 |
# load speech translation checkpoint
|
11 |
-
asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-
|
12 |
|
13 |
# load text-to-speech checkpoint and speaker embeddings
|
14 |
model_id = "Ellight/speecht5_finetuned_voxpopuli_nl" # update with your model id
|
|
|
8 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
9 |
|
10 |
# load speech translation checkpoint
|
11 |
+
asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-tiny", device=device)
|
12 |
|
13 |
# load text-to-speech checkpoint and speaker embeddings
|
14 |
model_id = "Ellight/speecht5_finetuned_voxpopuli_nl" # update with your model id
|