Spaces:
Build error
Build error
Commit
·
f4ecb95
1
Parent(s):
cdeb0d8
Return only the first element from transcription function
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import nemo.collections.asr as nemo_asr
|
|
4 |
asr_model = nemo_asr.models.ASRModel.from_pretrained("nvidia/stt_en_conformer_ctc_large")
|
5 |
|
6 |
def transcription(audio):
|
7 |
-
return asr_model.transcribe([audio.name])
|
8 |
|
9 |
examples = [
|
10 |
['TestAudio1.wav']
|
|
|
4 |
asr_model = nemo_asr.models.ASRModel.from_pretrained("nvidia/stt_en_conformer_ctc_large")
|
5 |
|
6 |
def transcription(audio):
|
7 |
+
return asr_model.transcribe([audio.name])[0]
|
8 |
|
9 |
examples = [
|
10 |
['TestAudio1.wav']
|