Shrirang20 commited on
Commit
e3cfd2a
1 Parent(s): 739811b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -336,7 +336,7 @@ def transcribe(audio: str, lang: str):
336
 
337
  # transcription = asr_model.transcribe(audio, batch_size=1, language_id=lang_map[lang])[0][0]
338
  # transcription = asr_model.transcribe(paths2audio_files=[audio], batch_size=1)[0]
339
- transcription = asr_model.transcribe([audio], batch_size=1)[0]
340
  print(f"Transcription: {transcription}")
341
 
342
  return transcription
 
336
 
337
  # transcription = asr_model.transcribe(audio, batch_size=1, language_id=lang_map[lang])[0][0]
338
  # transcription = asr_model.transcribe(paths2audio_files=[audio], batch_size=1)[0]
339
+ transcription = asr_model.transcribe([audio], batch_size=1, language_id=lang_map[lang])[0][0]
340
  print(f"Transcription: {transcription}")
341
 
342
  return transcription