maher13 commited on
Commit
4c929ff
·
1 Parent(s): 5cffb7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,8 +20,8 @@ def inference(audio_file, audio_file2):
20
 
21
  with torch.no_grad():
22
  predicted_ids = torch.argmax(logits, dim=-1)
23
- predicted_ids[predicted_ids == -100] = processor.tokenizer.pad_token_id
24
- transcription1 = processor.tokenizer.batch_decode(predicted_ids)[0]
25
  else:
26
  transcription1 = "N/A"
27
 
 
20
 
21
  with torch.no_grad():
22
  predicted_ids = torch.argmax(logits, dim=-1)
23
+ predicted_ids[predicted_ids == -100] = processor.tokenizer.pad_token_id
24
+ transcription1 = processor.tokenizer.batch_decode(predicted_ids)[0]
25
  else:
26
  transcription1 = "N/A"
27