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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -334,8 +334,9 @@ def transcribe(audio: str, lang: str):
334
  download_path, map_location=DEVICE
335
  )
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
  print(f"Transcription: {transcription}")
340
 
341
  return transcription
 
334
  download_path, map_location=DEVICE
335
  )
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