Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ title = "Transcribe speech several languages"
|
|
7 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
8 |
|
9 |
asr_pipe_audio2Text_Ge = pipeline(task="automatic-speech-recognition", model="jonatasgrosman/wav2vec2-large-xlsr-53-german")
|
10 |
-
asr_pipe_whisper = pipeline(task="automatic-speech-recognition", model="openai/whisper-
|
11 |
|
12 |
#def transcribeFile(audio_path : str) -> str:
|
13 |
# transcription = asr_pipe_audio2Text_Ge(audio_path)
|
|
|
7 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
8 |
|
9 |
asr_pipe_audio2Text_Ge = pipeline(task="automatic-speech-recognition", model="jonatasgrosman/wav2vec2-large-xlsr-53-german")
|
10 |
+
asr_pipe_whisper = pipeline(task="automatic-speech-recognition", model="openai/whisper-base", device=device)
|
11 |
|
12 |
#def transcribeFile(audio_path : str) -> str:
|
13 |
# transcription = asr_pipe_audio2Text_Ge(audio_path)
|