Pushkar02-n commited on
Commit
5bf7405
·
verified ·
1 Parent(s): 3f0404e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,8 +75,8 @@ async def transcribe(file: UploadFile = File(...), _: str = Depends(verify_crede
75
  loop = asyncio.get_event_loop()
76
  transcription = await loop.run_in_executor(
77
  None,
78
- # Note: If using the AI4Bharat multilingual model, add `language_id='ne'` below
79
- lambda: asr_model.transcribe(paths2audio_files=[audio_path], batch_size=1)[0]
80
  )
81
 
82
  os.remove(audio_path)
 
75
  loop = asyncio.get_event_loop()
76
  transcription = await loop.run_in_executor(
77
  None,
78
+ # Pass the list positionally, and explicitly declare Nepali ('ne')
79
+ lambda: asr_model.transcribe([audio_path], batch_size=1, language_id='ne')[0]
80
  )
81
 
82
  os.remove(audio_path)