Shubham09 commited on
Commit
15d8346
·
1 Parent(s): c080796

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def asr_transcript(input_file):
40
  #Take argmax
41
  predicted_ids = torch.argmax(logits, dim=-1)
42
  #Get the words from predicted word ids
43
- transcription = processor.batch_decode(predicted_ids[0])
44
  #Correcting the letter casing
45
  #transcription = correct_casing(transcription.lower())
46
  return transcription
 
40
  #Take argmax
41
  predicted_ids = torch.argmax(logits, dim=-1)
42
  #Get the words from predicted word ids
43
+ transcription = processor.batch_decode(predicted_ids[0])
44
  #Correcting the letter casing
45
  #transcription = correct_casing(transcription.lower())
46
  return transcription