nithinraok commited on
Commit
b224ca2
·
verified ·
1 Parent(s): b9a7f21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ model = ASRModel.from_pretrained(model_name=MODEL_NAME).to(device)
14
  model.eval()
15
 
16
  def get_transcripts(audio_path):
17
- text = model.transcribe([audio_path])[0][0]
18
  return text
19
 
20
  article = (
 
14
  model.eval()
15
 
16
  def get_transcripts(audio_path):
17
+ text = model.transcribe([audio_path])[0].text
18
  return text
19
 
20
  article = (