Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from speechbrain.pretrained import EncoderClassifier
|
|
10 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
11 |
|
12 |
# load speech translation checkpoint
|
13 |
-
asr_pipe = pipeline("automatic-speech-recognition", model="
|
14 |
|
15 |
# load text-to-speech checkpoint and speaker embeddings
|
16 |
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
|
|
10 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
11 |
|
12 |
# load speech translation checkpoint
|
13 |
+
asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base", device=device)
|
14 |
|
15 |
# load text-to-speech checkpoint and speaker embeddings
|
16 |
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|