Spaces:
Runtime error
Runtime error
Commit
•
af4b219
1
Parent(s):
f63ec58
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
11 |
# load speech translation checkpoint
|
12 |
|
13 |
|
14 |
-
asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base", device=device, generate_kwargs = {task : "transcribe", language
|
15 |
|
16 |
# load text-to-speech checkpoint and speaker embeddings
|
17 |
# processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
|
|
11 |
# load speech translation checkpoint
|
12 |
|
13 |
|
14 |
+
asr_pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base", device=device, generate_kwargs = {"task" : "transcribe", "language" : "swahili"})
|
15 |
|
16 |
# load text-to-speech checkpoint and speaker embeddings
|
17 |
# processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|