Spaces:
Runtime error
Runtime error
Update app.py
Browse fileschanged from openai whisper base to-> softcatala/whisper-base-ca (theorically better for catala translations)
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="softcatala/whisper-base-ca", device=device)
|
14 |
|
15 |
# load text-to-speech checkpoint and speaker embeddings
|
16 |
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|